【发布时间】:2014-04-04 15:12:54
【问题描述】:
我使用 http://www.html5rocks.com/en/tutorials/tooling/supercharging-your-gruntfile/?redirect_from_locale=de 中描述的 load-grunt-config 功能拆分了我的 gruntfile。我还为 dalek 创建了一个模块,如
https://www.npmjs.org/package/grunt-dalek
看起来像这样:
module.exports = {
dalek: {
options: {
browser: ['phantomjs'],
reporter: ['html', 'junit', 'json'],
},
dist: {
src: ['tests/gui/dalekjs/dakektest.js']
}
}
};
在控制台中执行grunt -v 时,我在控制台中看到以下输出:
它说没有文件,但是当我使用时:
module.exports = {
dalek: {
options: {
browser: ['phantomjs'],
reporter: ['html', 'junit', 'json'],
},
files: {
src: ['tests/gui/dalekjs/dakektest.js']
}
}
};
一切正常!
有什么想法吗?
干杯 izocan
【问题讨论】:
标签: javascript testing gruntjs gui-testing dalekjs