unit-testing - Xcode4 在终端中显示所有输出(删除 “Showing first 200 notices only” )

标签 unit-testing logging jenkins continuous-integration xcodebuild

我们将 xcodebuild 用于一些 Jenkins CI 任务。

我们有一个停止构建的错误,但无法看到它是什么,因为 xcodebuild 将日志长度限制为前 200 个通知:

Showing first 200 notices only

** TEST FAILED **

有没有办法取消200个通知限制?我们知道我们可以使用 UI 在 Xcode 中执行此操作,但需要能够使用 xcodebuild 从命令行执行此操作

最佳答案

只需使用 xcodebuild cli。
在 Jenkins 中设置“调用脚本”步骤,内容如下:
xcodebuild clean test -project SOMEPROJECT.xcodeproj -scheme SOMECHEME -destination 'name=iPhone 6,OS=9.1'

关于unit-testing - Xcode4 在终端中显示所有输出(删除 “Showing first 200 notices only” ),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24021399/

相关文章:

python - Python的标准库可以做结构化日志记录吗?

docker - 在容器中调试Groovy脚本

git - Jenkins 管道 : How do I fetch (not pull) a different branch?

java - RxJava 2 : BehaviorSubject and Observable. 合并最新问题

angularjs - 如何在 Jasmine 单元测试中解决$ q.all promise ?

.net - 模拟 WCF 服务的简单方法?

python - logging.info 和 logging.getLogger().info 有什么区别?

java - 自定义 OutputStreamAppender 未运行 : LOGBACK: No context given for <MYAPPENDER>

c# - 使用 Jenkins 执行 NUnit

unit-testing - testify/assert.Contains 如何与 map 一起使用?