Skip to content

Commit

Permalink
Add nicer support for coverage
Browse files Browse the repository at this point in the history
Just to encourage people to use the coverage tool (and write tests).

Change-Id: Ie30f9143a91363461aaaee59e0f9521d264dcd3e
  • Loading branch information
asalkeld committed Dec 9, 2013
1 parent 5a04efd commit 81369a7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .coveragerc
@@ -0,0 +1,7 @@
[run]
branch = True
source = solum
omit = solum/tests/*,solum/openstack/*

[report]
ignore-errors = True
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -27,6 +27,7 @@ pip-log.txt
.coverage
.testrepository
.tox
cover
nosetests.xml

# Translations
Expand Down
8 changes: 8 additions & 0 deletions coverage.sh
@@ -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.