【问题标题】:Example.txt file not getting updated if test is failed in before(:all) in Rspec如果在 Rspec 中的 before(:all) 中测试失败,则 Example.txt 文件不会更新
【发布时间】:2021-09-23 17:24:41
【问题描述】:

我目前面临一个问题,我的测试套件编写了 Rspec。假设规范在 before(:all) 本身中失败了,那么 example.txt 文件没有更新失败的案例。你能帮忙吗?

【问题讨论】:

  • 你的测试是什么样的,运行失败后example.txt是什么样的?

标签: ruby automation rspec rspec-rails rspec2


【解决方案1】:

在我的代码中的 after(:all) 方法中存在一个退出,这就是 example.txt 没有得到更新的原因

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-01-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-05-11
    • 2013-05-13
    • 2018-09-21
    • 2023-03-31
    相关资源
    最近更新 更多