Evan Worley wrote:
Does anyone have any examples or know how to construct negative integration
tests using the maven-integration-test-helper and it-verifier, or any other
component? I am trying to write an integration tests that validates that a
build fails when a test fails.
http://svn.apache.org/repos/asf/maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/TestFailIfNoTests.java
http://tinyurl.com/2b6s6u
try
{
verifier.executeGoals( goals );
verifier.resetStreams();
verifier.verifyErrorFreeLog();
fail( "Build didn't fail, but it should" );
}
catch ( VerificationException e )
{
// as expected
}
finally
{
verifier.resetStreams();
}
-Dan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]