Reputation: 3879
Is there a way to change how Jenkins computes build health based on failing tests? I'd like Jenkins to treat any failing tests as something other than "sunny", but so far my searching for a way to do that has been fruitless. Does the standard setup allow this level of control, or are there perhaps plugins that can do this?
Upvotes: 4
Views: 7839
Reputation: 15982
If you use the xUnit plugin, which supports several test report formats, you can add a post-build action to parse your build's test reports and declare a build as unstable or failed depending on the number of tests that fail or are skipped.
Upvotes: 4