I have the following configuration in my pom.xml
<build> <plugins> <plugin> <artifactId>maven-surefire-plugin</artifactId> <version>2.17</version> <configuration> <excludes> <exclude>**/DocumentChangeSubscriberTest.java</exclude> </excludes> </configuration> </plugin> (...)
DocumentChangeSubscriberTestis an arquillian test that I want to run only in the specified profile. When I type mvn installall the tests run, even DocumentChangeSubscriberTestwhich I want to exclude. How to exclude a test from the default profile (anonymous)?
DocumentChangeSubscriberTest
mvn install
I tried <includes><include>...and it works fine - only the included tests were executed.
<includes><include>...
I saw the maven surefire test plugin runs tests even if they are excluded: but this does not work for me. I also tried many versions maven-surefire-pluginwith no result. Any ideas?
maven-surefire-plugin
, . , : DocumentChangeSubsriberTest.java DocumentChangeSubscriberTest.java.
DocumentChangeSubsriberTest.java
DocumentChangeSubscriberTest.java
.
, .
<excludes>. maven . *IT (: MyClassIT.java) maven-failsafe-plugin .
<excludes>
*IT
MyClassIT.java
maven-failsafe-plugin
, maven-surefire-plugin . , :
Test*.java
*Test.java
*TestCase.java
, maven-failsafe-plugin :
IT*.java
*IT.java
*ITCase.java
arquillian, , , DocumentChangeSubscriber IT.java .
. .
, -.
(, , ): maven maven?
, ! , ( ).
, , : " maven-surefire, , , <reporting><plugins><plugin>....</plugin></plugins></reporting>, , , <build><plugins><plugin>...</plugin></plugins></build>, <reporting> <build> , - , - .
<reporting><plugins><plugin>....</plugin></plugins></reporting>
<build><plugins><plugin>...</plugin></plugins></build>
<reporting>
<build>
, , , - , . , - maven- . , .
mvn verify .
mvn verify
<excludes> <exclude>**/something/*Test.java</exclude> </excludes>
, -Dit.test.. mvn verify -Dit.test="<some_package>"
mvn verify -Dit.test="<some_package>"
DOES , -Dit.test... mvn verify