Satish wrote:
>
>
> How can you do this explicitly, currently by default, package/install
> goals call these.
>
> i have the following snippet in my pom.xml and it's giving errors
>
> <build>
> <excludes>
> <exclude>
> **/*Test*.java
> </exclude>
> </excludes>
> </build>
>
>
Good day to you, Satish,
You can configure your maven-surefire-plugin to specify which tests to
include/exclude. For example, to exclude all MyFailingTest.java, you can add
the following to your pom:
<project>
[...]
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<excludes>
<exclude>**/MyFailingTest.java</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
[...]
</project>
Cheers,
Franz
--
View this message in context:
http://www.nabble.com/excluding-unit-tests-tf2124320.html#a5860804
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]