I would like to run a JUnit regression Test Suite from within an ANT build script. The test suite has a known number of failures which we are working towards fixing. I want the build to fail if the number of failing tests increases (or changes at all if that’s easier to code) – this value can be hard coded in the ANT script.
I’m looking for details on how to implement this.
The junit task creates and XML file with the failing tests. There’s no reason you couldn’t use XMLTask to count the number of failures and have a conditional fail if that value is too high.