1
我用量角器来测试我的角度的应用程序。当我手动启动量角器时,它可以正常工作并测试所有内容,但当我尝试通过咕噜声启动时会遇到麻烦。咕噜量角器 - 亚军没有真正测试
当我启动我的测试任务时,量角器找到conf文件(它显示要测试的规格的数量),但只需在奇怪的“数据”上打开chrome驱动程序少于几秒钟;网址,马上关闭并将所有测试标记为“通过”。
这里是我的量角器gruntfile.js:
protractor: {
options: {
configFile: "e2e-tests/protractor.conf.js", // Default config file
keepAlive: false, // If false, the grunt process stops when the test fails.
noColor: false, // If true, protractor will not use colors in its output.
args: {
verbose: true,
}
},
all: {}
}
和我的量角器的conf文件:
exports.config = {
allScriptsTimeout: 11000,
seleniumAddress: 'http://localhost:4444/wd/hub',
specs: [
'*.js'
],
capabilities: {
'browserName': 'chrome'
},
baseUrl: 'http://localhost:8000/',
framework: 'jasmine',
jasmineNodeOpts: {
defaultTimeoutInterval: 30000
}
};
再次,如果我手动启动对同一文件的conf量角器它的工作原理(即使我在本地node_modules目录中使用本地量角器)我真的不明白发生了什么。
非常感谢你们!