There are some test classes which needs to be ignored when I run my testng suite. I tried using the @Test(enabled=false) annotation for the class and methods that needs to be ignored. But my problem is that the class that needs to be ignored extends an abstract class and this abstract class test methods are not ignored even when I have @Test(enabled=false) annotation on the base class. In Junit I could use @ignore on the base class and the test methods on the extended class would not be invoked at all. How can I replicate this behaviour in testng.
Also In my testng suite I run the test by packages and not by classes. Hence even if I try to group the class and ignore the group it is not working either.
<test name="Test">
<groups>
<run>
<exclude name="testClass"/>
</run>
</groups>
<packages>
Please help