...
- Static Code Analysis
- Unit Testing
- Functional Mojo Testing
- Functional Jpa Testing
- Functional REST Testing
Running the Integration Tests
By default the "skipTests" parameter is set to true for integration tests, so they do not run when the project is built, whereas unit tests will run as part of the standard build.
Mojo Integration Tests
Prerequisites
- A config-test.properties file must exist that is configured to point to a database that contains no data (this is a destructive test).
- A server may or may not be running at the "base.url" specified in the "config-test.properties" file. If so, mojos will connect to the server, otherwise not.
- A "maven.home" property must be specified to bootstrap the process
Run using the "mojo" profile (this will run only mojo integration tests).
Code Block |
---|
cd integration-tests
mvn -Pmojo install -Drun.config.ts=c:/termserver/config/config-test.properties -DskipTests=false -Dmaven.home=c:/apache-maven-3.0.5 |
REST Integration Tests
Prerequisites
- A config.properties file must exist that is configured to point to a database that is loaded with the standard dev database as described in Building and Deploying in Eclipse.
- A server must be running at the "base.url" specified in the "config.properties" file.
Run using the "resto" profile (this will run only rest integration tests).
Code Block |
---|
cd integration-tests
mvn -Prest install -Drun.config.ts=c:/termserver/config/config.properties -DskipTests=false |