This seems to be a recurring issue here in one form or another. Sorry to bring the news that it is still an issue.
Our tests are written in Scala and reside in their own Eclipse plug-in. They test Java code from another plug-in. We have three test classes, each residing in its own .scala file. The package name does NOT match the name of the plug-in, it matches the package in which the classes under test reside. All three test classes are in the same package. All of our test classes are annotated with @RunWith(classOf[JUnit4]), and all of our test methods are annotated with @Test. We launch our tests from the IDE using an Eclipse Run Configuration that invokes the Scala Junit4 test runner. The run configuration is configured to "Run all tests in the selected project, ...", where it is the test plug-in project that is selected.
If I open my Eclipse IDE, and none of the test classes are open in an editor,
When I invoke my run configuration,
Then I get the message found in the Subject above: No tests found with test runner 'Scala JUnit 4'
If I then open ONE of the test classes in an editor,
When I invoke my run configuration,
Then only the tests found in that class run, and there is no indication that the other two were skipped.
As you can imagine, opening the other two test classes in an editor results in all of my tests running.
I've tried moving my test classes to a package whose name matches that of the plug-in project, but that doesn't help.
I'd like all of my tests to run without having to open the test classes in an editor. Any ideas?
Thanks