adam bien's blog

Unskippable Maven Tests 📎

The following maven plugin configuration introduces "unskippable" unit tests:

    
<build>
<plugins>
    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.20.1</version>
        <configuration>
            <skipTests>false</skipTests>
        </configuration>
    </plugin>
</plugins>
</build>


Even with the mvn clean install -DskipTests system property, all unit tests are still going to be executed.

See you at Java EE Workshops at Munich Airport, Terminal 2 or Virtual Dedicated Workshops / consulting. Is Munich's airport too far? Learn from home: airhacks.io.