Quick/Nimble

Test fails: "expected to eventually be true, got <true>"

オープン

#360 opened on 2016/11/02

 (2 件のコメント) (0 件のリアクション) (0 人の担当者)Swift (407 件のフォーク)batch import
bughelp wantedquestion / needs more detailstricky

Repository metrics

Stars
 (3,602 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

Nimble: 5.1.0, xcode: 8.0 (8A218a), using cocoapods, UI Testing bundle, iOS simulator (iPad 2 Air)

I really like Nimble, thanks!

Observed behaviour: Tests sometimes fail with the following message: "expected to eventually be true, got ". When rerunning the same test it often just passes.

Expected behaviour: When expectations gets true using the matcher beTrue() it should not fail.

Steps to reproduce:

  • I haven't been able to consistently reproduce. The same tests sometimes fail with this message and sometimes don't. It happens in different test classes.
  • The code is always of the following form: expect(myFunc()).toEventually(beTrue(), timeout: myTimeout) where myFunc() is in a different helper class.
  • The same happens with the beTruthy() matcher.

Screenshot from Xcode

コントリビューターガイド