Skip to content
This repository has been archived by the owner on Nov 21, 2017. It is now read-only.

@Test(enabled=false) annotation at class level should disable all the methods in the class #102

Open
GoogleCodeExporter opened this issue Apr 23, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
I have a test class like this:

@Test(enabled = false)
public class MyTest {
   @DataProvider(name = "bla")
   private Object[][] bla() {
      return new Object[][] {
            new Object[] { "bla"}
      };
   }

   @Test(dataProvider = "bla")
   public void blatest(String bla) {
      System.out.println(bla);
   }
}

What is the expected output? What do you see instead?
I would expect method blatest not to run and no console output. Instead blatest 
runs and prints "bla".

What version of the product are you using? On what operating system?
I've tested with testng 5.11/6.0.1, running from maven 2.2.1/3.0.3 with 
surefire plugin 2.7.2.

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 12 Jul 2011 at 4:48

@GoogleCodeExporter
Copy link
Author

TestNG is now on GitHub. I filled https://github.com/cbeust/testng/issues/151

Original comment by [email protected] on 21 Dec 2011 at 12:26

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant