【问题标题】:fail-fast in cucumberjs, protractor在 cucumberjs 中快速失败,量角器
【发布时间】: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 totalif the first test failsI 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


    【解决方案1】:

    我认为这是 protractor 4 版本的问题。

    您能否降级到 protractor 3.3.0 版本并检查它是否按预期工作?

    protractor、cucumberjs 和其他存储库中存在一些问题:

    我希望他们能在下一个版本中尽快解决问题。

    【讨论】:

    • 降级也没有用;它在 v3.3.0 对你有用吗?即使在之前的测试快速失败后,您的其余测试是否仍在运行?
    • 其他人有什么想法/线索吗?在之前的功能因 fail-fast = true; 而失败后,我仍然无法运行我的其他功能。这会阻止我们的 CI 服务器上的正确报告,如果没有该标志,即使具有多种功能(并行),e2e 测试也需要很长时间
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-02-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多