I am developing Scala code using Eclipse, often when I run the tests I get this error:
No tests found with test runner "JUnit 3".
Environment:
- Eclipse for Java Developers, 3.5.1
- Scala 2.7.7
- JUnit 4.7
I am currently writing my tests as JUnit3 tests and calling them by right-clicking on a package in the project explorer, choosing Run As -> JUnit Test. (I wrote them as JUnit4 tests, but ran into even bigger problems.)
If I run eclipse, the tests may not run unless I first open the source code file for the test. If I open the source code file for the test, it will be launched. However, often when I make a modification to any test file or any other source code file, Eclipse refuses to run my tests, saying: "There are no tests with the JUnit 3 test runner."
I just repeated this now:
- Open eclipse
- Open the .scala file with some tests
- Call the tests by right-clicking on the package for this file in the project explorer and choosing Run As -> JUnit Test
- He performed tests
- Failed to complete
- I changed the string literal in a failed test to fix it.
- , " , runner' JUnit 3".
- , , . JUnit .
, Eclipse... Eclipse .
. XML , , - .
2 : . : Scala Eclipse?, , m Scala + Eclipse. - , - , !