How to get detail unit test case execution log for iOS in Jenkins environment

こ雲淡風輕ζ 提交于 2019-12-25 03:54:17

问题


While running the Xcode unit test cases through command line I am able to see the below log.

Command:

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

Log:

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

Where as same when executed through jenkins execute shell the detail log is not displayed it displays the below information.

** TEST SUCCEEDED **

How to get the detail information of test cases in Jenkins environment?


回答1:


issue is Resolved,

Actually the Jenkins was running in the invisible guest user without having permission to access system resources. Hence the build was not getting installed in the simulator.

I used the Jenkins app which gets installed as a application in the root.



来源:https://stackoverflow.com/questions/24737621/how-to-get-detail-unit-test-case-execution-log-for-ios-in-jenkins-environment

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!