Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d3bf8b60 authored by Jonathan Klee's avatar Jonathan Klee
Browse files

chore: use exact same regexp as doc

parent 63df2e00
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@ test:
  script:
    - ./gradlew test jacocoDebugReport -PtestAccountName="$testAccountName" -PtestAccountPwd="$testAccountPwd" -PtestServerUrl="$testServerUrl"
    - python3 scripts/print_instruction_coverage.py app/build/reports/jacoco/jacocoDebugReport/jacocoDebugReport.xml
  coverage: '/INSTRUCTION_COVERAGE\\s+([0-9]{1,3}\\.?[0-9]*)%/'
  coverage: '/Total.*?([0-9]{1,3})%/'
  artifacts:
    when: always
    paths:
+1 −1
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ def main() -> None:
    covered_count = int(instruction_counter.attrib["covered"])
    total_instructions = covered_count + missed_count
    coverage_pct = covered_count / total_instructions * 100 if total_instructions else 0
    print(f"INSTRUCTION_COVERAGE {coverage_pct:.2f}%")
    print(f"Total {coverage_pct:.2f}%")


if __name__ == "__main__":