0
爲什麼下面的testng組測試失敗?我TestNG的版本是6.11TestNG - dependsOnGroups失敗
測試:
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");
}
}
這工作得很好。
mvn -Dgroups=first test
它沒有說depends on nonexistent group "first"
mvn -Dgroups=second test