【发布时间】:2016-09-22 20:28:00
【问题描述】:
我在 cucumberOpts 中添加了 fail-fast,如下所示:
cucumberOpts: {
require: [
conf.paths.e2e + '/utilities/hooks.js',
],
format: 'pretty',
'fail-fast': true
},
我的所有测试都在这样的路径中:C:/tests/*.feature
我这样运行测试:protractor protractor.conf.js
这很好用,因为它会在出现错误时立即停止测试。但我正在像 Bamboo 这样的 CI 服务器上运行这些测试,我希望在继续运行其余测试失败的同时提供快速反馈。
所以如果我有4 tests in total、if the first test fails、I want to fail-fast on that first test 然后是I want to continue running the other 3 tests/feature files。
它现在正在做什么,我不喜欢,它会在一个测试失败时立即失败,并且它不会运行任何其他功能文件。
有什么想法吗?
【问题讨论】:
标签: node.js protractor ui-automation e2e-testing cucumberjs