开发者

JUnit, test and threads

开发者 https://www.devze.com 2022-12-30 01:27 出处:网络
when 开发者_StackOverflow社区i run multiple JUnit tests in a row, does JUnit create a new thread for each execution or everything is wrapped in a single thread?

when 开发者_StackOverflow社区i run multiple JUnit tests in a row, does JUnit create a new thread for each execution or everything is wrapped in a single thread?

Thanks


It's all on a single thread. You don't say how you're invoking the tests, but for example, running a TestSuite will run all the tests in the suite sequentially.

If you want parallel execution, TestNG has support for running tests concurrently, as does JUnitPerf and GroboUtils.


JUnit 4.0 supports concurrent tests

0

精彩评论

暂无评论...
验证码 换一张
取 消