zbig zbig - 3 months ago 26
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?


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