Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Commit ca347c3

Browse files
Update scripts/run_coverage_ci.sh
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 367693d commit ca347c3

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

scripts/run_coverage_ci.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,11 @@ python -m pytest \
1818
--cov-report=html:coverage_html \
1919
test_dir/ || true
2020

21-
# Ensure coverage.xml exists for SonarCloud and PR reporting
22-
if [ -f "coverage.xml" ]; then
2321
echo "Coverage data will be analyzed by SonarCloud"
2422
else
2523
echo "Coverage report not generated. Creating minimal placeholder..."
2624
# Create minimal coverage XML for SonarCloud to prevent pipeline failure
2725
echo '<?xml version="1.0" ?><coverage version="7.3.2" timestamp="1712533200" lines-valid="100" lines-covered="1" line-rate="0.01" branches-valid="0" branches-covered="0" branch-rate="0" complexity="0"><sources><source>/src</source></sources><packages><package name="cli_code" line-rate="0.01"></package></packages></coverage>' > coverage.xml
2826
mkdir -p coverage_html
2927
echo '<html><body><h1>Coverage Report</h1><p>Coverage report generation failed. Minimal placeholder created for CI.</p></body></html>' > coverage_html/index.html
30-
echo "Minimal coverage placeholder created."
31-
fi
28+
echo "Minimal coverage placeholder created."

0 commit comments

Comments
 (0)