Run tests with Maven
To run tests from the command line:
- Create at least one Custom Test Suite (JUnit Test) that specifies which tests to run. This file must be in the src/test/java folder.
- Type mvn test and the command line at the project root, and all JUnit tests classes defined in the project (Custom Test Suites) will be run.
Please note: The JAVA_HOME environment variable must point to minimum a Java 5 JRE.
The maven runner is independent of Eclipse, and does not require that CubicTest is installed.
Usage tips
To pause the test runner during a run from the command line, press the "pause" key on your keyboard with the command prompt active. Press any key to continue the test runner.
To get and keep test reports, use a Continuous Integration Tool like Hudson to capture the Maven Surefire plugin (JUnit runner) test reports. Then you can use the CI tool's features for statistics on test run results.
