如何在Jenkin环境下获取iOS的详细unit testing用例执行日志

当通过命令行运行Xcodeunit testing用例时,我可以看到下面的日志。

命令:

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 

在通过jenkin执行shell执行相同的情况下,不显示详细logging,显示以下信息。

 ** TEST SUCCEEDED ** 

如何在Jenkin环境下获取testing用例的详细信息?

提前致谢

问题已解决,

实际上,jenkins在没有权限访问系统资源的情况下,正在不可见的访客用户中运行。 因此,构build没有被安装在模拟器中。

我使用了作为应用程序安装在根中的Jenkins应用程序。