Pourquoi le test du groupe de test ci-dessous échoue-t-il? Ma version testng est 6,11TestNG - dependsOnGroups échoue
Test:
public class MyTest {
@Test(groups = "first")
public void firstTest() {
System.out.println("Executing first");
}
@Test(groups = "second", dependsOnGroups= {"first"})
public void secondTest() {
System.out.println("Executing second");
}
}
Cela fonctionne très bien.
mvn -Dgroups=first test
Il échoue en disant depends on nonexistent group "first"
mvn -Dgroups=second test