Skip to content
Snippets Groups Projects
Commit 9bb8c919 authored by Robbie Luijben's avatar Robbie Luijben
Browse files

Update README with documentation on running tests

parent 4b64491a
No related branches found
No related tags found
1 merge request!326bugfix, didn't consider rfi_percent = 0 a valid RFI
......@@ -112,3 +112,16 @@ This is the procedure for that.
See the integration instructions in the [astronauth repo](https://git.astron.nl/astron-sdc/astronauth)
### Running tests
To run tests, you can spin up a dedicated test database locally using the the provided `docker-compose-ci.yml` file. This test database will not interfere with your local development database. For example, you can run this command from the `atdb/docker` folder:
` docker compose -f .\docker-compose-ci.yml up -d`
After spinning up the database, you can execute the tests with the following command:
`python manage.py test --settings atdb.settings.ci`
Dedicated settings for running the tests are provided in the `atdb/settings/ci.dev` file. For convenience, `test.bat` is provided to run the above command (Windows only).
Finally, these tests are also executed in the CI pipeline through the test stage in the `.gitlab-ci.yml` file.
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment