I have JUnit tests in src/test/java/
and groovy tests in src/test/groovy/
.
I can run every tests in IDE, but I want to add them to mvn test
.
If I use:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
<configuration>
<argLine>${arg}</argLine>
<includes>
<include>**/*Test.class</include>
</includes>
</plugin>
mvn test
run all from groovy package, but if I add junit for surefire like here:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
<configuration>
<argLine>${arg}</argLine>
<includes>
<include>**/*Test.class</include>
</includes>
</configuration>
<dependencies>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-junit47</artifactId>
<version>3.0.0-M5</version>
</dependency>
</dependencies>
</plugin>
mvn test
run all from java package.
I've tried a lot of things, but I can't configure maven to run both in one build.
How is it possible to do that?