1
0
mirror of https://github.com/catchorg/Catch2.git synced 2025-05-19 13:59:33 -04:00
Catch2/tools/misc/appveyorMergeCoverageScript.py

10 lines
317 B
Python
Raw Normal View History

#!/usr/bin/env python3
import glob
import subprocess
if __name__ == '__main__':
2019-12-15 21:17:53 +01:00
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)