Perform the following steps to create a test suite and include a particular package:
testngXML file with name
include-package-testng.xmlin the project. Add the following code to it:
<suite name="Include Package Suite" verbose="1"> <test name="Include Package Test"> <packages> <package name="test.*"> <include name="test.secondpackage" /> </package> </packages> </test> </suite>
The preceding test suite defines a test, which includes all subpackages of the
test package (defined by using regular expression
test.*) and includes only a particular package from all the packages for test execution. This is done by using the ...