gd-tools/Catch2-3.5.2/tools/misc/appveyorMergeCoverageScript.py
2024-02-07 16:32:30 -04:00

10 lines
317 B
Python

#!/usr/bin/env python3
import glob
import subprocess
if __name__ == '__main__':
cov_files = list(glob.glob('tests/cov-report*.bin'))
base_cmd = ['OpenCppCoverage', '--quiet', '--export_type=cobertura:cobertura.xml'] + ['--input_coverage={}'.format(f) for f in cov_files]
subprocess.check_call(base_cmd)