我们最近设置了一些带有 iOS 应用程序的Xcode 机器人来自动构建和测试我正在开发的应用程序。如果我只是构建和分析,构建过程可以正常工作。如果我将它设置为运行测试,它最终会出现大量以Unexpected TestSuiteWillFinish
. 例如,最近的运行显示:
运行测试套件 TimeClockTestCase 遇到错误(Unexpected TestCaseDidFinish) testParseResponseString 遇到错误(Unexpected TestSuiteWillFinish) testGetIntegrationID 遇到错误(Unexpected TestSuiteWillFinish)
而之前的只有一个错误:
testAddChildObjectTypeTimeClockEvent 遇到错误 (Unexpected TestSuiteWillFinish)
集成结果显示所有测试都已通过,无论显示什么错误。如果我直接通过 Xcode 运行测试(而不是在服务器上运行机器人),则没有错误并且通过了相同数量的测试。
是什么导致了这些错误,我该如何消除它们?
以下是 TimeClockTestCase 的日志:
Test Suite 'TimeClockTestCase' started at 2014-02-23 23:11:09 +0000
2014-02-23 18:11:09.653 -0500 [TimeClockResponseCommand parseResponseString] [Line 74] W: Unsupported action number "3" in TIMECLOCK response command
Test Case '-[TimeClockTestCase testAddChildObjectTypeTimeClockEvent]' started.
Test Case '-[TimeClockTestCase testAddChildObjectTypeTimeClockEvent]' passed (0.000 seconds).
Test Case '-[TimeClockTestCase testAddChildObjectTypeTimeClockMode]' started.
Test Case '-[TimeClockTestCase testAddChildObjectTypeTimeClockMode]' passed (0.000 seconds).
Test Case '-[TimeClockTestCase testTimeclockEventColl]' started.
Test Case '-[TimeClockTestCase testTimeclockEventColl]' passed (0.000 seconds).
Test Case '-[TimeClockTestCase testTimeclockModeColl]' started.
Test Case '-[TimeClockTestCase testTimeclockModeColl]' passed (0.000 seconds).
Test Suite 'TimeClockTestCase' finished at 2014-02-23 23:11:09 +0000.