Commit 683973fe authored by Daniel Lehmberg's avatar Daniel Lehmberg

WIP check for coverage

parent 97fd9e91
Pipeline #93556 failed with stages
in 2 minutes and 18 seconds
...@@ -48,16 +48,14 @@ def extract_line_and_branch_coverage(module_names): ...@@ -48,16 +48,14 @@ def extract_line_and_branch_coverage(module_names):
# TODO: Regex seems be be broken on Windows CI worker. Find out why! # TODO: Regex seems be be broken on Windows CI worker. Find out why!
regex_pattern = re.compile(r"Total.*?([0-9]{1,3})\s?%.*?([0-9]{1,3})\s?%") regex_pattern = re.compile(r"Total.*?([0-9]{1,3})\s?%.*?([0-9]{1,3})\s?%")
print(coverage_report)
match = regex_pattern.search(coverage_report) match = regex_pattern.search(coverage_report)
exit()
if match: if match:
line_coverage = float(match.group(1)) line_coverage = float(match.group(1))
branch_coverage = float(match.group(2)) branch_coverage = float(match.group(2))
module_to_coverage[module] = (line_coverage, branch_coverage) module_to_coverage[module] = (line_coverage, branch_coverage)
else: else:
print(coverage_report)
raise Exception("Coverage data not found for module: {}".format(module)) raise Exception("Coverage data not found for module: {}".format(module))
return module_to_coverage return module_to_coverage
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment