diff --git a/.gitignore b/.gitignore index e4bf98a..8d0820c 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,6 @@ static* .idea* .*.swp *.sqlite3 -secrets \ No newline at end of file +secrets +.coverage +htmlcov* \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index cad06ab..cda8d00 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,3 +10,4 @@ docutils gunicorn django-simple-email-confirmation django-ses +coverage \ No newline at end of file diff --git a/run_tests.sh b/run_tests.sh new file mode 100755 index 0000000..385e788 --- /dev/null +++ b/run_tests.sh @@ -0,0 +1,2 @@ +venv/bin/coverage run --source='flashcards' manage.py test flashcards/tests/ +venv/bin/coverage html \ No newline at end of file