- Docs: Update coverage badge

- npm: Ensure badge gets updated
master
Brett Zamir 2020-01-06 13:51:25 +08:00
parent 97f64d2189
commit 05fe0cc526
2 changed files with 7 additions and 7 deletions

View File

@ -1,17 +1,17 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="110" height="20">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="116" height="20">
<linearGradient id="smooth" x2="0" y2="100%">
<stop offset="0" stop-color="#bbb" stop-opacity=".1"/>
<stop offset="1" stop-opacity=".1"/>
</linearGradient>
<clipPath id="round">
<rect width="110" height="20" rx="3" fill="#fff"/>
<rect width="116" height="20" rx="3" fill="#fff"/>
</clipPath>
<g clip-path="url(#round)">
<rect width="63" height="20" fill="#555"/>
<rect x="63" width="47" height="20" fill="#fe7d37"/>
<rect width="110" height="20" fill="url(#smooth)"/>
<rect x="63" width="53" height="20" fill="#fe7d37"/>
<rect width="116" height="20" fill="url(#smooth)"/>
</g>
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="110">
@ -20,8 +20,8 @@
<text x="325" y="150" fill="#010101" fill-opacity=".3" transform="scale(0.1)" textLength="530" lengthAdjust="spacing">Coverage</text>
<text x="325" y="140" transform="scale(0.1)" textLength="530" lengthAdjust="spacing">Coverage</text>
<text x="855" y="150" fill="#010101" fill-opacity=".3" transform="scale(0.1)" textLength="370" lengthAdjust="spacing">21.3%</text>
<text x="855" y="140" transform="scale(0.1)" textLength="370" lengthAdjust="spacing">21.3%</text>
<text x="885" y="150" fill="#010101" fill-opacity=".3" transform="scale(0.1)" textLength="430" lengthAdjust="spacing">40.74%</text>
<text x="885" y="140" transform="scale(0.1)" textLength="430" lengthAdjust="spacing">40.74%</text>
</g>

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -37,7 +37,7 @@
"cypress:merge": "mochawesome-merge \"cypress/results/*.json\">mochawesome.json && marge mochawesome.json && node build/testing-badge.js",
"cypress:run-only": "rimraf \"cypress/results/*\" && cypress run",
"cypress:run-no-badge": "run-s -c cypress:run-only cypress:merge",
"cypress:run": "run-s cypress:run-no-badge coverage-badge",
"cypress:run": "run-s -c cypress:run-no-badge coverage-badge",
"open-report-no-start": "open-cli http://localhost:8000/coverage/",
"open-report": "run-p start open-report-no-start",
"start-open-report": "run-p start open-report",