m2Eclipse and JUnit4: 'no tests found' - solved

Just a quick note: I have a project in Eclipse which is maven-based, and generated initially using the “new maven project” wizard in Eclipse. I’m using JUnit 4.5 for the unit tests, and could quite happily run the tests from the command line using maven, and individual tests from Eclipse using run as JUnit test.... However, when I tried to run all of the tests in the project by invoking run as JUnit test... on the project root node, Eclipse complained “no tests found with test runner junit 4”. Solved by upgrading m2eclipse to the latest stable development build from the m2eclipse update site (specifically, I upgraded from version 0.9.8.200905041414 to version 0.9.9.200907201116 in Eclipse Galileo).

 newer · index · older