2
我使用的业力,并吞掉,业力angularjs,只运行修改过的测试文件吞噬。
gulp.task('test', function() {
/// Be sure to return the stream
return gulp.src(config.paths.karmaTest.src)
.pipe(karma({
configFile: './karma.conf.js',
action: 'run'
}))
.on('error', function(err) {
// Make sure failed tests cause gulp to exit non-zero
console.log(err)
this.emit('end');
//throw err;
});
});
这工作,但实在是太慢了,有没有办法创造一个手表,只运行修改后的测试?
你怎么知道,如果在源代码中休息等检查您的修改? – glepretre 2014-12-05 08:12:48