Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use coverage as well

  • Loading branch information...
commit 20a4e4e8f557b920b0af2ed08b14a7c8c618aa85 1 parent fb6ca6b
@nkuttler authored
Showing with 13 additions and 0 deletions.
  1. +2 −0  .gitignore
  2. +4 −0 Makefile
  3. +7 −0 tests/Makefile
View
2  .gitignore
@@ -4,3 +4,5 @@ build
dist
*.egg-info
*.sqlite
+tests/htmlcov/
+tests/.coverage
View
4 Makefile
@@ -15,3 +15,7 @@ upload:
clean:
rm -rf dist build *.egg-info django-webmaster-verification-*
+ rm -rf tests/htmlcov tests/.coverage
+
+coverage:
+ make -C tests htmlcov
View
7 tests/Makefile
@@ -1,6 +1,13 @@
+.PHONY: test
test: db.sqlite
python manage.py test --failfast --settings=test_project.settings_multicode
python manage.py test --failfast
db.sqlite:
python manage.py syncdb --noinput
+
+.coverage:
+ coverage run --source=webmaster_verification manage.py test
+
+htmlcov: .coverage
+ coverage html
Please sign in to comment.
Something went wrong with that request. Please try again.