()
| 56 | |
| 57 | |
| 58 | def main(): |
| 59 | exitcode = 0 |
| 60 | |
| 61 | missing_test_files = check_src_files_have_test() |
| 62 | if missing_test_files: |
| 63 | exitcode += 1 |
| 64 | for f, p in sorted(missing_test_files): |
| 65 | print(f"{f} MUST have a matching test file: {p}") |
| 66 | |
| 67 | unknown_test_files = check_test_files_have_src() |
| 68 | if unknown_test_files: |
| 69 | # TODO: enable this in the future |
| 70 | # exitcode += 1 |
| 71 | for f, p in sorted(unknown_test_files): |
| 72 | print(f"{f} DOES NOT MATCH a source file! Expected to find: {p}") |
| 73 | |
| 74 | sys.exit(exitcode) |
| 75 | |
| 76 | |
| 77 | if __name__ == "__main__": |
no test coverage detected
searching dependent graphs…