Last active
February 16, 2018 23:44
-
-
Save jvmops/d97188d6d1eeea0a0e869cb3d4928bcc to your computer and use it in GitHub Desktop.
Maven - ignoring integration tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Category(IntegrationTest.class) | |
public class ExampleTest { | |
@Test | |
public void im_slow() { | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface IntegrationTest {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<configuration> | |
<includes> | |
<include>**/*.java</include> | |
</includes> | |
<argLine>-Dfile.encoding=UTF-8</argLine> | |
<skipTests>${skip.unit.tests}</skipTests> | |
<excludedGroups>com.jvmops.tests.annotations.IntegrationTest</excludedGroups> | |
</configuration> | |
</plugin> | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment