Skip to content

Instantly share code, notes, and snippets.

@t3hnar
Created October 7, 2011 10:01
Show Gist options
  • Save t3hnar/1269946 to your computer and use it in GitHub Desktop.
Save t3hnar/1269946 to your computer and use it in GitHub Desktop.
run.mode=test in maven
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.8</version>
<configuration>
<systemProperties>
<property>
<name>run.mode</name>
<value>test</value>
</property>
</systemProperties>
<includes>
<include>**/*Spec.class</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment