I am building a webapp project using Maven, using maven-failsafe-plugin for my integration tests. A cargo Glassfish3x container is started bound to the pre-integration-test phase, and stopped as part of the post-integration-test phase.
However, my integration tests are in a pyUnit based script. I tried running them both using exec-maven-plugin, and using nosetests/freshen through maven-bdd-plugin.
Both methods run the script fine, but if the tests fail, they fail the Maven build immediately. Maven does not run the post-integration-test phase, leaving a running cargo container behind, which fails any other attempts to run the tests.
How can I configure maven-failsafe to interpret my failing exec to be a failing test, so that it does its job and runs the post-integration-test phase?