Skip to content
Leah Copeland edited this page Apr 13, 2021 · 7 revisions

Test

Install requirements:

  • pip install -r requirements.txt

change directory to the location containing the file manage.py

Initial set up:

  • python manage.py makemigrations
  • python manage.py migrate

Run test at the directory containing manage.py:

  • python manage.py test

Run coverage test at the directory containing manage.py:

  • python -m coverage erase
  • python -m coverage run manage.py test citrus_home
  • python -m coverage report
  • python -m coverage xml #to get xml report coverage.xml
  • python -m coverage html #to get html report in htmlcov directory

Clone this wiki locally