coverage.py: check that all files in ./tests appear in coverage.txt

This commit is contained in:
Johannes Schauer Marin Rodrigues 2022-11-18 09:48:26 +01:00
parent 543093eddc
commit adf8f9399d
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -207,6 +207,14 @@ def main():
# parse coverage.txt
config_order, config_dict = parse_config("coverage.txt")
if set(os.listdir("tests")) - set(config_order):
print(
"test(s) missing from coverage.txt: %s"
% (", ".join(sorted(set(os.listdir("tests")) - set(config_order)))),
file=sys.stderr,
)
exit(1)
# produce the list of tests using the cartesian product of all allowed
# dists, modes, variants and formats of a given test
tests = []