请求崩溃报告已完成。继续测试-Jenkins Pipeline Xcode测试用例失败

时间:2019-10-17 08:26:18

标签: xcode unit-testing jenkins sonarqube jenkins-pipeline

Destination simulator is: platform=iOS Simulator,name=iPhone 6s Plus,OS=12.4
Excluded paths from coverage are: .*Tests.*
Creating directory sonar-reports/
Running tests
+ xcodebuild test -workspace Project.xcworkspace -scheme ProjectTests -configuration Debug -enableCodeCoverage YES -destination 'platform=iOS Simulator,name=iPhone 6s Plus,OS=12.4' -destination-timeout 60
2019-10-17 13:25:05.905 xcodebuild[5811:47314]  IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Users/XXUSERXX/Library/Developer/Xcode/DerivedData/Project-gcyoajxbeybhskdjmpfudvsghpth/Logs/Test/Test-ProjectTests-2019.10.17_13-20-39-+0530.xcresult/1_Test/Diagnostics/ProjectTests-3CAB9DB7-C238-45F1-984F-C3C061536B14/ProjectTests-674B5C61-8938-4243-BEE2-66691C2F4489/Session-ProjectTests-2019-10-17_132505-kBU2rX.log

2019-10-17 13:25:05.907 xcodebuild[5811:47306] [MT] IDETestOperationsObserverDebug: (340B3860-B575-4819-A2D6-C529266893C8) Beginning test session ProjectTests-340B3860-B575-4819-A2D6-C529266893C8 at 2019-10-17 13:25:05.906 with Xcode 10G8 on target <DVTiPhoneSimulator: 0x7f8b11877220> {
        SimDevice: iPhone 6s Plus (CE03A4E0-9AD3-4BB4-8146-AE5C1288ABC3, iOS 12.4, Shutdown)
} (12.4 (16G73))

2019-10-17 13:25:28.196 xcodebuild[5811:47306] [MT] IDETestOperationsObserverDebug: (340B3860-B575-4819-A2D6-C529266893C8) 

Finished requesting crash reports. Continuing with testing

自上周以来,我一直在面对上述错误消息,我正在使用Jenkins管道构建Xcode,然后使用Xcode 12.3 MAC OS Catalina运行Sonar报告的测试用例。

我什至尝试在不同的机器上运行,但收到​​不同的错误消息,fastlane未安装在当前系统中,也未包含在脚本文件中。 等待大约30-40分钟后,我得到以下屏幕,该屏幕显示测试用例失败。

2019-10-17 13:25:28.196 xcodebuild[5811:47306] [MT] IDETestOperationsObserverDebug: (340B3860-B575-4819-A2D6-C529266893C8) Finished requesting crash reports. Continuing with testing.
2019-10-17 13:43:38.360 xcodebuild[5811:47306] [MT] IDETestOperationsObserverDebug: 1112.476 elapsed -- Testing started completed.
2019-10-17 13:43:38.361 xcodebuild[5811:47306] [MT] IDETestOperationsObserverDebug: 0.001 sec, +0.001 sec -- start
2019-10-17 13:43:38.361 xcodebuild[5811:47306] [MT] IDETestOperationsObserverDebug: 1112.476 sec, +1112.474 sec -- end

Failing tests:
    ProjectTests:
        *******ModelTests.testCreate****Details()
        *******ModelTests.testCreate****Details()

Test session results and logs:
    /Users/XXUSERXX/Library/Developer/Xcode/DerivedData/Project-gcyoajxbeybhskdjmpfudvsghpth/Logs/Test/Test-ProjectTests-2019.10.17_13-20-39-+0530.xcresult

** TEST FAILED **

+ returnValue=65
+ set +x
ERROR - Command 'xcodebuild test -workspace Project.xcworkspace -scheme ProjectTests -configuration Debug -enableCodeCoverage YES -destination platform=iOS Simulator,name=iPhone 6s Plus,OS=12.4 -destination-timeout 60' failed with error code: 65

当在当前系统中运行时,测试用例在本地运行,但通过Jenkins管道运行以进行声纳测试时失败。

谢谢

0 个答案:

没有答案