Is there a JUnit TestRunner for running groups of tests?

前端 未结 9 766
既然无缘
既然无缘 2021-02-05 13:42

I am currently using JUnit 4 and have a need to divide my tests into groups that can be run selectively in any combination. I know TestNG has a feature to annotate tests to assi

9条回答
  •  灰色年华
    2021-02-05 14:17

    TestNG has my vote. It's annotation based, can run as Groups, single Tests, etc, can be linked into Maven, and can run all JUnit tests as part of it's test runs.

    I highly recommend it over JUnit.

提交回复
热议问题