Jenkins JUnit插件空测试文件没有失败

时间:2019-01-09 07:56:54

标签: jenkins junit

我正在使用Jenkins JUnit插件并根据文档收集测试结果:

Allow empty results: If checked, the default behavior of failing a 
build on missing test result files or empty test results is changed to 
not affect the status of the build. Please note that this setting make 
it harder to spot misconfigured jobs or build failures where the test 
tool does not exit with an error code when not producing test report 
files.

这是我的用法:

junit testResults: '**/reports/junit*.xml', testDataPublishers: [[$class: 'StabilityTestDataPublisher']]

因此,如果测试文件为空,则该行为应失败,但是我收到消息后显示“ UNSTABLE”结果

Test report file /opt/workspace/integrations_develop/reports/junit_integrations.xml was length 0

如果测试文件为空,如何使它失败?

0 个答案:

没有答案
相关问题