I’m using ant to do my builds, and I’m using TestNG for testing.
Is it possible to not have the build fail whenever there is a test failure?
And, should I have a test method throw an Exception, or catch any exceptions that my be thrown in the method?
In case you are using junit task you can set
haltonfailureproperty.The quote from ant documentation:
The sample:
Or you can use
failurepropertyproperty.The quote from ant documentation: