5.6. Unit Tests

This project uses unit tests to guarantee correctness of the code and make it easier to update dependencies without breaking anything.

5.6.1. General rule

Whenever a new feature is implemented, the corresponding unit tests should also be written. The list below should be updated.

5.6.2. How to run tests

The tests can be run by invoking scripts/run_tests.sh from the project root directory. The test database is generated the first time you run the script and kept in order to speed up the test execution.

This means that you have to call scripts/delete_test_database.sh whenever a model changes because the test database is not synchronized with the code!

5.6.3. Parts of the code for which tests exist

Currently, there are no tests.

5.6.4. Test environment

Some testing data is stored in so called fixtures. The most important data is:

5.6.4.1. Root user:

name: root

password: root

5.6.4.2. Test users: