I ran a few thousand JUnit tests in Jenkins. Some tests fail with a No tests found in ....Test. I noticed that these tests are problematic because they combine the JUnit3 and the JUnit4 approach. To be more specific these tests:
- extend MyTestCase which extends TestCase (JUnit3)
- the test methods' names don't end in ...test. They have the @Test annotation instead. (JUnit4)
The thing is that when I run these tests in Eclipse I don't get the same error. The tests run normally and they either pass or fail. So my question is this: How is it possible that Jenkins cannot find the tests whereas Eclipse can? Can I configure Jenkins somehow, in order to run these tests?