zbig zbig - 1 year ago 224
Java Question

Maven (surefire) test plugin excludes not working

I have following configuration in my pom.xml


is an arquillian test that I want to run only in specified profile.
When I type
mvn install
all tests are run, even
that I want to exclude.
How to exclude test from the default (anonymous) profile?

I tried
and it works fine - only included tests were run.

I saw maven surefire test plugin runs tests even if they are excluded: but this is not working for me. I also tried many versions of
without result. Any ideas?

Answer Source

Ok, excluding tests works. It was as simple as mispelling my class name: DocumentChangeSubsriberTest.java instead of DocumentChangeSubscriberTest.java.


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download