You can run the unit tests with:
mvn clean test
You can run the integration tests with:
mvn test-compile failsafe:integration-test
You can create a fat jar by running:
mvn package
Once you have a fat jar, you can run the application:
java -jar target/zip-service-jar-with-dependencies.jar
By default the application will listen on port 8080, you can override the default port by setting the $http.server.port
value:
java -jar -Dhttp.server.port=8081 target/zip-service-jar-with-dependencies.jar
When the application is running, you can run the acceptance tests with:
mvn -Dtest="*UAT" test
By default the acceptance tests will be executed against an application that is listening on port 8080 of localhost. You can override this as follows:
mvn -Dhost=adifferenthost -Dport=8081 -Dtest="*UAT" test
In the host flag you don't have to prefix the url with http://
.
You can generate reports for the code coverage as follows:
mvn jacoco:report