-
Notifications
You must be signed in to change notification settings - Fork 25
Building the Application
To run the complete build, which will clean up all generated files, build the entire project, run all unit tests, deploy to the local maven repository, and run the system tests, from the parent project run:
mvn clean install
You can start the web application in development mode using the jetty container from the petstore-app module by running:
mvn initialize jetty:run
To run the tests in the current module:
mvn test
In the petstore-infrastructure module, tests are integration tests that perform changes and queries to a the petstore_test test database, whatever the build profile used. All pending migrations are automatically applied (see Migrating the database).
In the petstore-system-tests, tests are system tests run against an embedded jetty server.
System tests are run when performing a full build (see the Full build section).
To run the system tests without running the full build, you can run maven test goal in the petstore-system-tests module:
mvn test
The test database will be recreated and populated with system test data. The webserver will be started using the test server port, which is 8180 by default.