Skip to content

Running the test suite

Emma Corbett edited this page Jun 25, 2020 · 6 revisions

Running the test suite

There a few ways to run the tests, for all of them you will need docker running locally.

1, Using the Makefile

If you have GNU's Make tool installed you can simply run make test in the command line from the project root directory.

2, Using docker-compose

If you don't have make installed you can run the tests by running docker-compose run mosaic-resident-information-api-test in the project root directory.

3, Running in an IDE

To use your IDE to run the tests you will first need to make sure the test database is up and running for the tests to connect to. You can do this by running docker-compose up -d test-database from the project root directory. You can then run your tests like normal in the IDE.

Clone this wiki locally