I would like to run all junit 4 tests within my Eclipse project. The project is setup with /source and /test. Under /test are various packages, such as:
com.yaddayadda.test.core.entity
com.yaddayadda.test.core.framework
If I right-click at the /test
level in Package Explorer and choose Run As; Junit Test I receive the error:
No tests found with test runner 'JUnit 4'.
If I right-click on com.yaddayadda.test.core.entity
, then it finds and runs all the tests within that package. So the @Test annotations are correct (they are also picked up by Ant correctly on the build server). However, if I try and run all tests within com.yaddayadda.test.core
then it finds none.
Basically, it only seems to look within the package rather the recusively at all children. Is there a way to fix this?