2 4. Tests execution and tests reports
jeangb edited this page 2017-06-28 09:56:42 +02:00

Execute tests via your IDE

You can execute your tests via your IDE, Eclipse for example, using the TestNG plug-in. You can either execute the all test class or each test individually, by right clicking on the test class or test method, selecting "Run AS" -> "TestNG Test".

Execute tests via maven-surefire-plugin (suitable to continuous integration)

This method use a maven plug-in to execute tests in command line. There are multiple ways to do it.

It will generate html reports, see here.

/images/maven surefire reports.png