【问题标题】:theintern: 1 test failure causes all tests to fail - is this expected behaviour?实习生:1 次测试失败导致所有测试失败 - 这是预期的行为吗?
【发布时间】:2013-06-28 11:10:18
【问题描述】:

我为实习生设置了我认为的标准功能测试,我可以让它们在多个浏览器中始终如一地通过。我仍在评估将实习生用于项目是否有意义,所以我试图看看测试失败时会发生什么,目前如果我让一个测试失败,它似乎总是会导致套件中的所有测试失败。

我的测试看起来有点像:

registerSuite({name : 'demo',
  'thing that works' : function () {
      return this.remote.get('http://foo.com')
                        .waitForCondition("typeof globalThing !== 'undefined'", 5000)
                        .elementById('bigRedButton')
                          .clickElement()
                        .end()
                        .eval('jsObj.isTrue()')
                        .then(function(result){
                          assert.isTrue(result);
                        })
                        .end(); // not sure if this necessary...
  },
  'other thing that works': function() {
     // more of the same
  }
});

我将尝试调试自己来解决这个问题,但我只是想知道是否有人知道这是否是预期的行为(1 次测试失败导致整个测试套件失败,并报告套件中的所有测试都有失败),或者是否更有可能是我的设置错误并且我的承诺之间的交互不良或其他什么?

任何帮助都会很棒,如果有帮助,很乐意提供更多信息:)

谢谢!

【问题讨论】:

    标签: acceptance-testing intern


    【解决方案1】:

    几周前我遇到了完全相同的问题,并在 github 上为该问题创建了一张票:https://github.com/theintern/intern/issues/46

    目前它被标记为“需要分类”,我不知道它是什么意思。

    【讨论】:

    • D'oh - 我不知何故错过了,非常感谢,很高兴不仅仅是我!
    • 2016 年!我们已经解决了 :)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-02-18
    • 2013-01-30
    • 1970-01-01
    相关资源
    最近更新 更多