I have been trying from a couple of days to resolve the following error but I am unable to resolve it :(
My module\'s pom.xml file is:
If you are using ubantu then try to run MVN with sudo. I got same error for
mvn -Dtest=PerfLatency#latencyTest test -X
But
sudo mvn -Dtest=PerfLatency#latencyTest test -X
Solved my problem
Check your test files. You must clear all test files error on your project and try Clean and build.
Make sure the name of the class created in the package is something like somethingTest.java Maven only picks the java files ending with Test notation.
I was getting the same error and resolving the names of all my classes by adding 'Test' at the end made it work.
I was facing the same problem and how i resolved see below steps or Image:
enter image description here