即使js测试成功,xUnit也无法在Jenkins上运行

时间:2015-10-31 17:44:38

标签: jenkins jasmine xunit frisby.js

我们在Jenkins上有一个CI管道。正在测试的是在Docker容器中运行的REST API。它是用frisby.js测试的,它也使用茉莉花。

测试成功

Finished in 0.168 seconds
1 test, 4 assertions, 0 failures, 0 skipped

但xUnit将构建状态设置为FAILURE:

[xUnit] [INFO] - Converting '/path/to/TEST-FrisbyTestMyApiTest.xml' .
[xUnit] [INFO] - Check 'Failed Tests' threshold.
[xUnit] [INFO] - Check 'Skipped Tests' threshold.
[xUnit] [INFO] - Setting the build status to FAILURE

为什么?我怎样才能成功?

路径经过验证且正确无误。测试运行成功。我用JUnit模式运行Jenkins xUnit插件。所有xUnit阈值都设置为0.

0 个答案:

没有答案