diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 00000000..e942e608 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,9 @@ +[run] +omit = */urls/* + */__init__.py + */tests.py + */migrations/* + *urls.py + /usr/local/lib/* + /usr/lib/* + utils/xss_filter.py diff --git a/.travis.yml b/.travis.yml index b41d54b1..1d0df280 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,4 +10,5 @@ install: - python manage.py initadmin script: - flake8 . - - python manage.py test + - coverage run manage.py test + - coverage report diff --git a/deploy/requirements.txt b/deploy/requirements.txt index 4cacff32..ae085536 100644 --- a/deploy/requirements.txt +++ b/deploy/requirements.txt @@ -5,3 +5,4 @@ jsonfield otpauth flake8-quotes pytz +coverage