Skip to content

Commit

Permalink
Update test_coverage_badge.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
maximbilan authored Dec 30, 2024
1 parent 6b85a61 commit 8f2c5b9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/test_coverage_badge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ else
fi

echo "<svg xmlns='http://www.w3.org/2000/svg' width='150' height='20'>
<rect width='100' height='20' fill='#555' rx='3' ry='3'/>
<rect x='100' width='50' height='20' fill='${COLOR}' rx='3' ry='3'/>
<rect width='150' height='20' fill='#555' rx='5' ry='5'/>
<rect x='100' width='50' height='20' fill='${COLOR}' rx='5' ry='5' mask='url(#round-right)'/>
<mask id='round-right'>
<rect x='100' width='50' height='20' fill='white' rx='5' ry='5'/>
</mask>
<text x='50' y='14' fill='#fff' font-family='Verdana' font-size='11' text-anchor='middle'>Test Coverage</text>
<text x='125' y='14' fill='#fff' font-family='Verdana' font-size='11' text-anchor='middle'>${COVERAGE}%</text>
</svg>" > .badges/test_coverage.svg

0 comments on commit 8f2c5b9

Please sign in to comment.