April 2015
Intermediate to advanced
272 pages
4h 59m
English
A best practice of software development is writing automated unit tests for the code that you develop. Let us now see how to run these tests.
The plugin that does this job is the Maven Surefire plugin.
To run unit tests using the Maven Surefire plugin, perform the following steps:
mvn test
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ simple-project --- [INFO] Surefire report directory: C:\projects\apache-maven-cookbook\simple-project\target\surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- ...