aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAymeric Augustin2013-11-01 21:57:12 +0100
committerAymeric Augustin2013-11-01 21:57:12 +0100
commit1c2bb37e06e97f9a1577f624e4bce4afa56bfcce (patch)
tree8dec46df5606a1c8b1ed3175176d495f20276c68 /Makefile
parent96f1cb4b0d4b10903502e917ddaa460bc05f5ca3 (diff)
downloaddjango-debug-toolbar-1c2bb37e06e97f9a1577f624e4bce4afa56bfcce.tar.bz2
Add command to measure test coverage.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 22832c1..fb87b2f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,26 @@
# Make file to compress and join all JS files
all: compress_js compress_css
+
+
.PHONY: flake8 example test compress_js compress_css translatable_strings update_translations
flake8:
flake8 debug_toolbar example tests
example:
- PYTHONPATH=. django-admin.py runserver --settings=example.settings
+ DJANGO_SETTINGS_MODULE=example.settings PYTHONPATH=. \
+ django-admin.py runserver
test:
- PYTHONPATH=. django-admin.py test --settings=tests.settings tests
+ DJANGO_SETTINGS_MODULE=tests.settings PYTHONPATH=. \
+ django-admin.py test tests
+
+coverage:
+ coverage erase
+ DJANGO_SETTINGS_MODULE=tests.settings PYTHONPATH=. \
+ coverage run --branch --source=debug_toolbar `which django-admin.py` test tests
+ coverage html
compress_js:
yuicompressor debug_toolbar/static/debug_toolbar/js/jquery.js > debug_toolbar/static/debug_toolbar/js/toolbar.min.js