Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
27 lines (21 sloc)
571 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from coverage import coverage | |
import unittest | |
import os | |
cov = coverage(branch=True, omit=['venv/*', 'tests/*', 'config.py', 'utils/benchmark.py']) | |
cov.start() | |
from tests.website import WebsiteTest | |
from tests.utils import UtilsTest | |
from tests.build import BuildTest | |
from tests.admin import AdminTest | |
if __name__ == '__main__': | |
try: | |
unittest.main(failfast=True) | |
except: | |
pass | |
cov.stop() | |
cov.save() | |
print("\n\nCoverage Report:\n") | |
cov.report() | |
cov.html_report(directory='tmp/coverage') | |
cov.erase() |