summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2012-05-09 23:14:29 +0200
committerAndoni Morales Alastruey <ylatuya@gmail.com>2012-05-10 10:45:49 +0200
commit76849d97274b9c9efa76a85491c5c8d8bdcc1b15 (patch)
treebf3fea85ef69270c677999d344b40a8c048e9991 /Makefile
parentf91c72117cad845835d1002688192d7aece786f6 (diff)
Makefile: add coverage rules
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c73031c2..92da11b7 100644
--- a/Makefile
+++ b/Makefile
@@ -16,3 +16,11 @@ dist-tarball:
check:
PYTHONPATH=$(PYTHONPATH):./test:./cerbero; trial test
find cerbero ! -regex cerbero/packages/debian.py -name \*.py | sort -u | xargs pep8 --repeat
+
+coverage:
+ rm -rf _trial_temp
+ PYTHONPATH=$(PYTHONPATH):./test:./cerbero; trial --coverage test cerbero
+ make show-coverage
+
+show-coverage:
+ python tools/show-coverage.py _trial_temp/coverage/cerbero.*