Adding test to suite

As described in the section called “Test-NG configuration”, each test case must be included in Test Suite configuration.

  1. create new xml file under src/test/resources/, for example example.xml
  2. in the created xml file add new test case as follows, creating new Suite (specifying name) with a list of tests (specifying names), and each test can contain multiple classes (for details please refer to TestNG documentation)

    <!DOCTYPE suite SYSTEM "" >
    <suite name="Tigase Various Tests" verbose="1">
    	<test name="Example Tests">
    			<class name="tigase.tests.ExampleJaxmppTest" />
  3. include created xml file in the Test Suite (see the section called “Test-NG configuration”)