cbeust/testng — Issue #131: dependsOnMethods/dependsOnGroups regression in testng 6.3
Author: johanra
Created: 2011-11-18 15:48:20+00:00
State: open

After upgrading to 6.3 some of my tests are no longer executed. I have added code on github (https://github.com/johanra/testng-dependency-issue) that reproduces the problem. When running the same tests with 6.2 there is no problem.

The project contains 2 classes + 1 suite file. Each class is in a different package and has 1 test. When I add a dependency from testInA to testInB then no tests are executed. When I remove the dependency or add the dependency in the other direction then both tests are executed.

Class#1

package com.a;
public class ClassInA {

@Test (dependsOnMethods = { "testInB" },
groups={"atests","alltests"})
public void testInA() {
Assert.assertTrue(true);
}
}

Class#2

package com.b;
public class ClassInB {

@Test (
groups={"btests","alltests"})
public void testInB() {
Assert.assertTrue(true);
}
}