I would like to run all junit 4 tests in my Eclipse project. The project is configured using / source and / test. There are various packages under / test, for example:
com.yaddayadda.test.core.entity com.yaddayadda.test.core.framework
If I right-click on the /test level in the package explorer and select Run As; Junit test I get an error message:
No tests found with test runner 'JUnit 4'.
If I right-click on com.yaddayadda.test.core.entity , it finds and runs all the tests inside this package. Thus, @Test annotations are correct (they were also correctly picked up by Ant on the build server). However, if I try to run all the tests in com.yaddayadda.test.core , then it will not detect.
In principle, it seems that it looks only in a package, and not in reduction for all children. Is there any way to fix this?
eclipse junit4
WW.
source share