Unittests: report coverage

pull/7/head
Ferry Boender 10 years ago
parent 4751b78f45
commit 06f6757efb
  1. 11
      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()

Loading…
Cancel
Save