カルマを介してジャスミンスペックを実行しようとしていますが、カルマがインクルードファイルを探すときにC:\
、構成ファイルがC:\dev\project\
.
gulp タスクで Karma を実行しています。
var karma = require('karma').server;
gulp.task('test', function (done) {
karma.start({configFile: '../../../karma.conf.js', singleRun: true}, done);
});
この問題に関連する設定:
basePath: '',
files: [
{patterns:'bower_components/**/*.js',included:true},
{patterns:'src/*.js', included:true},
{patterns:'tests/*Spec.js', included:true}
],
exclude: []
カルマからログを実行すると、次のようgulp test
に吐き出されます。
WARN [watcher]: Pattern "C:/bower_components/**/*.js" does not match any file.
WARN [watcher]: Pattern "C:/src/*.js" does not match any file.
WARN [watcher]: Pattern "C:/tests/*Spec.js" does not match any file.
私はカルマが初めてで、ここで何が問題なのかよくわかりません。、、およびbasePath
を試しました。''
'./'
'/'