【问题标题】:How to detect which test case has failed?如何检测哪个测试用例失败了?
【发布时间】:2014-08-16 15:03:09
【问题描述】:

我的应用中有大约 300 个测试用例,当我使用以下命令通过终端运行它们时

xcodebuild -project GiaPet.xcodeproj -scheme GiaPet -sdk iphonesimulator clean  build test

测试开始运行,最后我得到:

** Test Failed ** and message says "Executed 219 tests, with 1 failure"

然后我必须通过这个巨大的日志才能知道哪个测试失败了。

有没有更好的方法来知道哪个测试用例失败了?

【问题讨论】:

    标签: ios xcode unit-testing xcodebuild xctest


    【解决方案1】:

    看看xctoolxcpretty。这两个工具都有很好的输出。

    【讨论】:

      猜你喜欢
      • 2013-08-30
      • 1970-01-01
      • 2018-03-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-01-26
      • 2011-03-29
      • 2018-12-02
      相关资源
      最近更新 更多