I have a question about testng.
I have something like:
@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
}
Is it possible to skip initializeMethod in testng report (I mean that in report I want to see real count of tests (2 but not 3))?
@Testannotation is used specifically for the tests. You have to annotate the methodinitializeMethod()properly with a non-test annotation. Several options are:Other possible annotations: