(argv)
| 36 | |
| 37 | |
| 38 | def Main(argv): |
| 39 | script_path = os.path.dirname(os.path.abspath(__file__)) |
| 40 | cov = coverage.coverage(include=([os.path.join(script_path, '*.py')])) |
| 41 | cov.start() |
| 42 | import test_scripts |
| 43 | alltests = map(unittest.TestLoader().loadTestsFromTestCase, [ |
| 44 | test_scripts.ToplevelTest, |
| 45 | test_scripts.ScriptTest, |
| 46 | ]) |
| 47 | unittest.TextTestRunner(verbosity=2).run(unittest.TestSuite(alltests)) |
| 48 | cov.stop() |
| 49 | print(cov.report()) |
| 50 | |
| 51 | |
| 52 | if __name__ == '__main__': |
no test coverage detected
searching dependent graphs…