From 113fb23abd6773fc61392782bc02e631c7fab9f1 Mon Sep 17 00:00:00 2001 From: Andrew Buss Date: Fri, 1 May 2015 13:00:05 -0700 Subject: [PATCH] added coverage --- .gitignore | 4 +++- requirements.txt | 1 + run_tests.sh | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100755 run_tests.sh 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 -- 1.9.1