File tree Expand file tree Collapse file tree 4 files changed +22
-5
lines changed Expand file tree Collapse file tree 4 files changed +22
-5
lines changed Original file line number Diff line number Diff line change 11* .pyc
22* .DS_Store
33* ~
4+ build
5+ .coverage
6+ dist
47django_debug_toolbar.egg-info
58docs /_build
69example /db.sqlite3
7- /dist
8- /build
9- /.tox
10+ htmlcov
11+ .tox
Original file line number Diff line number Diff line change 11# Make file to compress and join all JS files
22all : compress_js compress_css
33
4+
5+
46.PHONY : flake8 example test compress_js compress_css translatable_strings update_translations
57
68flake8 :
79 flake8 debug_toolbar example tests
810
911example :
10- PYTHONPATH=. django-admin.py runserver --settings=example.settings
12+ DJANGO_SETTINGS_MODULE=example.settings PYTHONPATH=. \
13+ django-admin.py runserver
1114
1215test :
13- PYTHONPATH=. django-admin.py test --settings=tests.settings tests
16+ DJANGO_SETTINGS_MODULE=tests.settings PYTHONPATH=. \
17+ django-admin.py test tests
18+
19+ coverage :
20+ coverage erase
21+ DJANGO_SETTINGS_MODULE=tests.settings PYTHONPATH=. \
22+ coverage run --branch --source=debug_toolbar ` which django-admin.py` test tests
23+ coverage html
1424
1525compress_js :
1626 yuicompressor debug_toolbar/static/debug_toolbar/js/jquery.js > debug_toolbar/static/debug_toolbar/js/toolbar.min.js
Original file line number Diff line number Diff line change @@ -35,6 +35,10 @@ environment::
3535
3636 $ make test
3737
38+ You can enable coverage measurement during tests::
39+
40+ $ make coverage
41+
3842You can also run the test suite on all supported versions of Django and
3943Python::
4044
Original file line number Diff line number Diff line change 99
1010# Testing
1111
12+ coverage
1213flake8
1314tox
1415
You can’t perform that action at this time.
0 commit comments