Permalink
Browse files

Add nicer support for coverage

Just to encourage people to use the coverage tool (and write tests).

Change-Id: Ie30f9143a91363461aaaee59e0f9521d264dcd3e
  • Loading branch information...
1 parent 5a04efd commit 81369a75d66a873168d3e3d009ea57a160387b59 @asalkeld asalkeld committed Dec 9, 2013
Showing with 16 additions and 0 deletions.
  1. +7 −0 .coveragerc
  2. +1 −0 .gitignore
  3. +8 −0 coverage.sh
View
@@ -0,0 +1,7 @@
+[run]
+branch = True
+source = solum
+omit = solum/tests/*,solum/openstack/*
+
+[report]
+ignore-errors = True
View
@@ -27,6 +27,7 @@ pip-log.txt
.coverage
.testrepository
.tox
+cover
nosetests.xml
# Translations
View
@@ -0,0 +1,8 @@
+#!/bin/sh
+args=
+if [ -n "$@" ] ; then
+ args="-t $@"
+fi
+python setup.py testr --coverage --slowest "$args"
+python -m coverage report --show-missing
+echo "Coverage generated, see cover/index.html"

0 comments on commit 81369a7

Please sign in to comment.