Is this possible to exclude classes in testng.xml?
I tried with
<packages>
<package exclude="com.tt.ee"/>
</packages>
but it’s giving error.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
According to the TestNG dtd, the
excludeelement is only applicable to the following elements:The elements
classesandclasscannot 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.