Skip to content

Commit

Permalink
⚗️ Test for CI System (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
soo-bak committed Jul 8, 2024
1 parent b5a3d73 commit cea35f0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/UnitTestsAndCodeCoverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,18 +157,17 @@ jobs:
\| Total Methods \| \${summary.Totalmethods[0]} \|
\| Method Coverage \| \${formattedMethodCoverage} \|
---
\`;
}
function formatCoverage(coverage) {
const coverageNum = parseFloat(coverage);
if (coverageNum === 100) {
return \`**\${coverageNum}%**\`;
return \`\${\\rm\\color{#00FF00}100%}\$\`;
} else if (coverageNum >= 80) {
return \`_\${coverageNum}%_\`;
return \`\${\\rm\\color{#FFD700}\${coverageNum}%}\$\`;
} else {
return \`~~\${coverageNum}%~~\`;
return \`\${\\rm\\color{#8B0000}\${coverageNum}%}\$\`;
}
}
Expand Down

0 comments on commit cea35f0

Please sign in to comment.