Run the following command to run all unit tests in your project. It generates reports in two different file formats: Plain text files (.txt) XML files (.xml) Goals: surefire:test runs the unit tests of an application. In Eclipse IDE, click Help > Eclipse Marketplace… to open up the Eclipse Marketplace dialog. The Maven Surefire Plugin is used to run unit tests of an application.Installing this plug-in is easy and would take only around 5-10 minutes. NOTES: Eclipse Kepler (4.3) and newer versions already have Maven integration so you don’t need to install the plug-in for this version of Eclipse.The most popular Maven plug-in for Eclipse Java EE IDE is called Maven Integration for WTP (m2e-wtp). This plugin is a must to use as it helps Maven identify tests even when using TestNG or Junit frameworks. A surefire report is available in two file formats, viz Plain text file(.txt) and XML file(.xml).
This tutorial presents a step-by-step guide about how to install Maven plugin (m2e) for an existing Eclipse version (Juno 4.2 and older). I wanted to start using Groovy for some automated tests that I needed to write because in my research I found that it had support for a lightweight SOAP Client (Groovy-wslite, btw) which wasn’t as code-heavy as an equivalent java implementation. Surefire PlugIn: To execute the unit tests of an application during the test phase of the build lifecycle one can use the Surefire Plugin.