如何在Jenkin环境中获取iOS的详细单元测试用例执行日志 [英] How to get detail unit test case execution log for iOS in Jenkin environment

查看:349
本文介绍了如何在Jenkin环境中获取iOS的详细单元测试用例执行日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

日志

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执行shell详细日志不显示它显示以下信息。

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

** TEST SUCCEEDED **

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

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

提前感谢

推荐答案

已解决,

实际上,Jenkins在不可见的guest用户中运行,而没有访问系统资源的权限。
因此构建没有安装在模拟器中。

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.

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

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

这篇关于如何在Jenkin环境中获取iOS的详细单元测试用例执行日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆