Run all Java target tests by default

And we will use the "tests" profile to initiate the tests for the rest of the targets.
This commit is contained in:
Jason van Zyl 2015-06-29 22:03:16 -04:00
parent c129166e69
commit 398f7fcf53
2 changed files with 30 additions and 15 deletions

13
pom.xml
View File

@ -63,6 +63,8 @@
<module>runtime/Java</module>
<module>tool</module>
<module>antlr4-maven-plugin</module>
<module>tool-testsuite</module>
<module>runtime-testsuite</module>
</modules>
<properties>
@ -117,15 +119,4 @@
</plugins>
</pluginManagement>
</build>
<profiles>
<profile>
<id>tests</id>
<modules>
<module>runtime-testsuite</module>
<module>tool-testsuite</module>
</modules>
</profile>
</profiles>
</project>

View File

@ -65,6 +65,15 @@
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<includes>
<include>**/java/Test*.java</include>
</includes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
@ -75,7 +84,7 @@
</goals>
</execution>
</executions>
</plugin>
</plugin>
</plugins>
</build>
@ -110,7 +119,22 @@
</plugin>
</plugins>
</build>
</profile>
</profiles>
</profile>
<profile>
<id>tests</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<includes>
<include>**/Test*.java</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>