Is this possible to exclude classes in testng.xml?
I tried with
<packages>
<package exclude="com.tt.ee"/>
</packages>
but it's giving error.
Is this possible to exclude classes in testng.xml?
I tried with
<packages>
<package exclude="com.tt.ee"/>
</packages>
but it's giving error.
According to the TestNG dtd, the
exclude
element is only applicable to the following elements:The elements
classes
andclass
cannot be directly excluded; however, you can exclude classes through groups:Then you will define the testng.xml:
In most cases you define, which classes to include for the run, not to exclude, so just include the classes you want to run.