运行以下TestNG xml套件:
<suite name="MySuite" verbose="1" configfailurepolicy="continue" >
<test name="some-tests" parallel="classes" thread-count="5">
<groups>
<run>
<include name="tmp" />
...
带有测试类
@Slf4j
public class TmpTest {
@Test(groups = "tmp")
void test1()
{
log.debug("test1");
}
@Test(groups = "tmp", dependsOnMethods = "test1")
void test2()
{
log.debug("test2");
}
}
单线程作为两个测试的结果是否属于同一类
显然有两个主题:
15:35:59.353 [TestNG-test=some-tests-1] DEBUG TmpTest - test1
15:35:59.362 [TestNG-test=some-tests-2] DEBUG TmpTest - test2