From 06f6757efb730ca2a4c48711fbf0e5250cff28ae Mon Sep 17 00:00:00 2001 From: Ferry Boender Date: Mon, 25 May 2015 13:35:51 +0200 Subject: [PATCH] Unittests: report coverage --- test/test.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/test/test.py b/test/test.py index df4970b..8fff1fb 100644 --- a/test/test.py +++ b/test/test.py @@ -161,4 +161,13 @@ class WebAppTest(unittest.TestCase): if __name__ == '__main__': - unittest.main() + import coverage + cov = coverage.coverage(omit=['*test*']) + cov.start() + + unittest.main(exit=False) + + cov.stop() + cov.save() + + print cov.report()