を実行していない私はいくつかの理由のために、物事は動作を停止し、自分のアプリケーション上でうなり声を使用して、実行中のカルマを持っていましたが、しています。私はカルマを再インストールして更新しましたが、これはかなり変更され、設定ファイルが変更されました。私のすべてのファイルが追加されて提供されていますが、私のテストは実行されていません。はカルマのテスト
当面は(もう一度実行しているものを取得しようとするが)、私はコマンドkarma start <pathtomyconfigfile>
を使用して、イサキの外を実行していますよ。 LOG_DEBUGオプションを使用すると、追加と配信のすべてが表示されます。
これは私の設定ファイルである:、私はここで途方に暮れてよ
module.exports = function(config) {
config.set({
// base path, that will be used to resolve files and exclude
basePath: '',
// frameworks to use
frameworks: ['jasmine'],
// list of files/patterns to load in the browser
files: [
'../build/angular/angular.js',
'../build/angular/angular-mocks.js',
'../build/angular/angular-resource.js',
'../build/angular/angular-cookies.js',
'../build/angular/angular-scenario.js',
'../src/**/*.js',
'../dist/tmp/**/*.js',
'../vendor/angular-bootstrap/*.js',
'../vendor/angular-ui-utils/modules/route/*.js',
'../vendor/angular-ui-utils/modules/mask/*.js'
],
// list of files to exclude
exclude: [
],
// test results reporter to use
// possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
reporters: ['progress'],
// web server port
port: 9018,
// enable/disable colors in the output (reporters and logs)
colors: true,
// level of logging
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_DEBUG,
// enable/disable watching file and executing tests whenever any file changes
autoWatch: true,
// Start these browsers, currently available:
// - Chrome
// - ChromeCanary
// - Firefox
// - Opera
// - Safari (only Mac)
// - PhantomJS
// - IE (only Windows)
browsers: ['Chrome'],//nothing so we can start it on our own
// If browser does not capture in given timeout [ms], kill it
captureTimeout: 60000,
// Continuous Integration mode
// if true, it capture browsers, run tests and exit
singleRun: false
});
};
見てファイルを変更し、別のブラウザで実行されていた、フレームワークにファイル変数内のフレームワークをロードするために古い方法との間で切り替えます変数...任意のヘルプは非常に高く評価されます。ありがとう!
追加情報
また、私のカルマがエラー以外の情報なしで出erroringされているようです:
INFO [karma]: Karma v0.10.1 server started at http://localhost:9018/
INFO [launcher]: Starting browser Chrome
INFO [Chrome 28.0.1500 (Mac OS X 10.7.4)]: Connected on socket id sidUjYbbZINjGB_6wS6M
Chrome 28.0.1500 (Mac OS X 10.7.4): Executed 0 of 0 ERROR (0.777 secs/0 secs)
あなたのテストはどこにありますか?彼らは "../src/**/*.js"のどこかにネストされていますか? – UnicodeSnowman
はい、それらはすべてブラウザに提供されています(デバッグ行を見てみましょう)。 – jbenowitz
単なる物を孤立させるために、1回の "保証された"保証テストでiitを実行して実行できるのですか?期待する(真).toBe(真)またはそれに類するもの? – UnicodeSnowman