Loading .gitlab-ci.yml +1 −1 Original line number Diff line number Diff line Loading @@ -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: Loading scripts/print_instruction_coverage.py +1 −1 Original line number Diff line number Diff line Loading @@ -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__": Loading Loading
.gitlab-ci.yml +1 −1 Original line number Diff line number Diff line Loading @@ -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: Loading
scripts/print_instruction_coverage.py +1 −1 Original line number Diff line number Diff line Loading @@ -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__": Loading