Skip to content
aris alexis edited this page Feb 8, 2016 · 3 revisions

Tests in the integration folder hit the database.
Each test can be run on its own through your IDE or maven.

Tests in the unit folder are for utility classes.

For integration tests, an in-memory database is used.

Before running the integration tests you need to edit the IntegrationTest class and input some values for the external services. Without these, the storage and email tests will fail (but it's not a big deal since these services don't change much). Keeping values in the code is bad practice, there is an open ticket for that.

To run all tests run: mvn test

Note that some tests will fail without Under mocks are injected Dummy implementations for various services. Finally, most tests should be more thorough :)

Clone this wiki locally