Is it possible to run JUnit tests from multiple packages in Eclipse?

前端 未结 7 1730
Happy的楠姐
Happy的楠姐 2021-02-01 12:43

Is it possible to run JUnit tests for multiple packages at the same time without manually creating test suites.

For example if I have the hierarchy:

code.brancho

7条回答
  •  说谎
    说谎 (楼主)
    2021-02-01 13:09

    Maybe not exactly what the original question was, but you can easily run all tests of a whole Project, by simply right-clicking the project -> Run As JUnitTest. Don't worry where the annotated classes reside, this will be scanned.

    This does not work if applied to the test-src-folder or a package with subpackes. Quite a shame actually -.-

提交回复
热议问题