Skip to content

Add automatic testing pipeline

Henning Schiebenhöfer requested to merge gitlab_ci into master

This MR includes automatic testing using gitlab's CI/CD pipeline as well as automatic setup of the test-database for local test execution.

  • Automated testing of frontend, backend does not include any tests, yet
  • move all frontend test related files to subdirectory tests
  • published frontend docker image dacshpi/covradar:latest (docker pull dacshpi/covradar:latest)
  • pytest configuration: frontend/setup.cfg
    • flake8 is deactivated for now since it fails due to loads of non-conforming files
    • pydocstyle is deactivated for the same reasons
    • minimum test coverage set to 60%
  • Add CONTRIBUTING.md which includes a description of the testing procedure and where new tests should go
  • easy local execution of tests (no docker required, added to CONTRIBUTING.md):
cd frontend
pip install tests/test_requirements.txt
conda install mysql
./tests/setup_test_sql_db.py
source env.sh
pytest -v

Closes #146

Edited by Henning Schiebenhöfer

Merge request reports

Loading