(args)
| 35 | |
| 36 | |
| 37 | def main(args): |
| 38 | runner = unittest.TextTestRunner() |
| 39 | test_suite = gather_test_cases(os.path.abspath(args.test_dir), args.pattern, args.list_tests) |
| 40 | if not args.list_tests: |
| 41 | result = runner.run(test_suite) |
| 42 | if len(result.failures) > 0: |
| 43 | sys.exit(len(result.failures)) |
| 44 | if len(result.errors) > 0: |
| 45 | sys.exit(len(result.errors)) |
| 46 | |
| 47 | |
| 48 | if __name__ == "__main__": |
no test coverage detected
searching dependent graphs…