This is a useful snippet to run all your tests even where one fails. This is useful where a test is dependent on an external system that is not available – obviously you will want to ensure the tests all pass at some point!
[sourcecode language=”lang='xml”]
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
<configuration>
<testFailureIgnore>true</testFailureIgnore>
</configuration>
</plugin>
[/sourcecode]
Like this:
Like Loading...