Have you ever wondered why your Maven project doesn’t find and execute your tests?
A common reason is that you have set your packaging type to ‘pom’. That is, the module you are trying to build is some kind of aggregating or parent module. The problem(?) you have found is that the life cycle for Maven doesn’t include executing the tests if the module has packaging set to ‘pom’. This is by design so I’m not sure that it should be seen as a problem. It is however very irritating and annoying before you find the problem.
Change the package type to jar, war, ear or whatever type you need. The complete list is
And remember that not everyone of these packaging types will execute your tests.
For a complete list of Mavens lifecycles, take a look in the manual: Maven Lifecycles