Skip to content

Running tests

paigewilliams edited this page Oct 15, 2025 · 2 revisions

badge

Running tests

Note: These instructions have only been tested when running on MacOS with vagrant-qemu

  1. Within the VM, navigate to the TEKDB directory: cd /usr/local/apps/TEKDB/TEKDB
  2. Assuming you have already installed the requirements.txt, run python manage.py test TEKDB.tests

Generate and view a coverage report:

  1. From /usr/local/apps/TEKDB/TEKDB, run the coverage exam with: coverage run --data-file=/usr/local/apps/.coverage manage.py test TEKDB.tests

Note: We need to specify the coverage data file location to one where we have write access.

  1. cd ../../ to navigate to usr/local/apps , where the .coverage should be located
  2. Run coverage report to output a report to the console. There are other options for how to output the report documented here.

Clone this wiki locally