Social Media

Junit/maven – Continue Tests after a fail

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]

About the Author Martin Farrell

My name is Martin Farrell. I have almost 20 years Java experience. I specialize inthe Spring Framework and JEE. I’ve consulted to a range of businesses, and have provide Java and Spring mentoring and training. You can learn more at About or on my consultancy website Glendevon Software

follow me on:

Leave a Comment: