@RunWith makes Maven ignore my test with my own runner
I am transitioning from using only Intellij to manage my Intellij / Maven build system. When I run my integration test "MapSimulationTest" with my own runner via @RunWith (KmlParameterizedRunner.class) Intellij handles the situation correctly, the directory specified by the system property "user.dir" is checked against .kml files and each is tested.
The problem is Surefire is ignoring @RunWith, any suggestions?
This is what the maven log shows ...
----------------------------------------------- --- ----- TESTS -------------------------------------------- ------ ----- Run com.tqicorp.guru.MapSimulationTest Spaces: 0, Errors: 0, Errors: 0, Skipped: 0, Elapsed Time: 0.061 sec.
a source to share
I am using surefire and @RunWith with Spring test runner and it works fine with maven 2.2.1.
To track down the problem, you can try to create a simple Junit test using the @Test annotation rather than the old testXXX method. Run "mvn test" and check if your test is running. If so, it will rule out any old junit possibility in your path. If it fails, run "mvn site" and search for the dependency report for junit and check the version. It's amazing how easily unwanted versions can appear!
a source to share