When running mvn test
maven won\'t run all Test Classes.
When I explicitly provide a class by adding -Dtest=PropertyTests
the tests will be run.
You need to add the maven surefire plugin to run the tests. The configuration can be found here.
Here's a configuration that I've been using with specs/junit.
org.apache.maven.plugins
maven-surefire-plugin
2.8.1
**/*Spec.*
**/*Test.*
The naming convention is Test
, so change PropertyTests
to PropertyTest
.