我正在整合Jenkins for iOS项目并将后期构建操作配置为“发布junit测试结果报告”。
当我使用Jenkins运行构建时,我收到的信息不确定测试报告的位置。
执行测试用例的命令:
xcodebuild -project MyStore2.xcodeproj -scheme MyStore2 -configuration test -sdk iphonesimulator7.0 clean test
控制台日志:
** TEST SUCCEEDED **
Recording test results
Test reports were found but none of them are new. Did tests run?
For example, /Users/Shared/Jenkins/Home/jobs/Sampletest/workspace/my_app/test-reports/test.xml is 3 min 48 sec old
Build step 'Publish JUnit test result report' changed build result to FAILURE
答案 0 :(得分:1)
生成测试报告时可能会发生:新报告擦除旧报告。您的测试报告文件夹中有多少个.xml文件?您是否尝试擦除此文件夹中的所有.xml文件并再次启动Jenkins作业?