The first thing needed is defining where the test classes should be
in. After that, the TestNG XML file must be created to run the tests. Each
package has a XML file to run all package tests. In addition, an entry for
each test package is needed in the file
src/main/java/testng_conformance.xml.
In the tests/examples folder of the project
(named EasyBeans by default), there is a TestNG XML file example called
testng_xml:
<!DOCTYPE suite SYSTEM "http://beust.com/testng/testng-1.0.dtd">
<suite name="Test Suite Example" verbose="1">
<test name="Test Example">
<packages>
<package name="org.ow2.easybeans.tests.examples"/>
</packages>
</test>
</suite>