Skip to content

Commit

Permalink
Add coverage output to test runs
Browse files Browse the repository at this point in the history
  • Loading branch information
robhudson authored and pmac committed Feb 23, 2023
1 parent 0131b1c commit 2a3b77d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
[run]
source = news
source = basket
omit =
news/tests/*
news/migrations/*
manage.py
basket/wsgi.py
basket/news/migrations/*
basket/news/tests/*

6 changes: 5 additions & 1 deletion bin/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@ black --check basket
urlwait
python manage.py makemigrations | grep "No changes detected"
bin/post-deploy.sh
py.test basket
py.test basket \
--cov-config=.coveragerc \
--cov-report=html \
--cov-report=term-missing \
--cov=.

0 comments on commit 2a3b77d

Please sign in to comment.