如何将非并行junit参数化测试转换为并行运行

如何将非并行junit参数化测试转换为并行运行

问题描述:

我写了一个参数化的junit测试。

I write a parameterized junit test.

有没有内置的方法让它并行运行? @annoation 例如?

Is there any built-in way to make it run in parallel? any @annoation for example?

如果没有,我唯一的方法是手动编写 -

If not, and my only way is to write this manually -

如何管理junit中的线程池,java?

how would you manage a thread pool in junit, java?

JUnit工具箱提供了 ParallelParameterized 转轮。替换

@RunWith(Parameterized.class)
public class YourTest {

@RunWith(ParallelParameterized.class)
public class YourTest {