Skip to content
TPei edited this page Jan 29, 2015 · 2 revisions

#Testing According to "Two Scoops of Django", testing should be done using coverage

Coverage

http://nedbatchelder.com/code/coverage/

###Setup

pip3 install coverage

###Execution move to project root

coverage run manage.py test

###Generate and View Reports after running coverage run

coverage html --omit=admin.py

then open the index.html in project_root/htmlcov

Clone this wiki locally