1
0
mirror of https://github.com/catchorg/Catch2.git synced 2025-03-17 19:21:13 -04:00
Catch2/misc/appveyorMergeCoverageScript.py

10 lines
305 B
Python
Raw Normal View History

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