我有包含几个测试的套件。如果测试完成运行时通过或失败,我想为每个测试打印。我不想为每个测试添加代码,因为我有很多测试,我需要在套件中进行。这是我拥有的一个套件的示例:
@RunWith(ConcurrentSuite.class)
@Concurrent(threads = 6)
@Suite.SuiteClasses({
test1.class,
test2.class,
test3.class,
test4.class,
})
public class ExampleSuite {
}
天呐!