小编典典

如何在Jenkins环境中获取iOS的详细单元测试用例执行日志

jenkins

通过命令行运行Xcode单元测试用例时,我可以看到以下日志。

命令:

xcodebuild -project MyStore2.xcodeproj -scheme MyStore2 -configuration Debug -sdk iphonesimulator7.0 clean test

日志:

Test Case '-[MyStore2Tests testIsTrue]' started.
Test Case '-[MyStore2Tests testIsTrue]' passed (0.000 seconds).
Test Suite 'MyStore2Tests' finished at 2014-07-14 13:01:58 +0000.
Executed 2 tests, with 1 failure (0 unexpected) in 0.000 (0.000) seconds
Test Suite 'MyStore2Tests.xctest' finished at 2014-07-14 13:01:58 +0000.
Executed 2 tests, with 1 failure (0 unexpected) in 0.000 (0.000) seconds
Test Suite 'All tests' finished at 2014-07-14 13:01:58 +0000.
Executed 2 tests, with 1 failure (0 unexpected) in 0.000 (0.002) seconds

当通过jenkins execute shell执行时,如果没有显示详细日志,则显示以下信息。

** TEST SUCCEEDED **

如何在Jenkins环境中获取测试用例的详细信息?


阅读 341

收藏
2020-07-25

共1个答案

小编典典

问题已解决,

实际上,Jenkins是以不可见的来宾用户身份运行的,没有访问系统资源的许可。因此,该构建未安装在模拟器中。

我使用了Jenkins应用程序,该应用程序作为根目录中的应用程序安装。

2020-07-25