我有一个关于testng的问题。跳过测试方法导致testng报告
我有类似:
@Test
public initializeMethod() {
//here I do something that is needed before my real test method
}
@Test (depends on initializeMethod)
public myRealTest1{
//my test 1
}
@Test (depends on myRealTest1)
public myRealTest2{
//my test 2
}
是否有可能跳过initializeMethod在TestNG的报告(我的意思是,在报告中,我希望看到的测试(2而不是3个实数数))?