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 b5b221c commit d59fd32
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/UnitTestsAndCodeCoverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ jobs:
\| Metric \| Value \|
\|----------------------\|------------------------------\|
\| Generated on \| \${summary.Generatedon[0]} \|
\| Author \| soo-bak \|
\| Assemblies \| \${summary.Assemblies[0]} \|
\| Classes \| \${summary.Classes[0]} \|
\| Files \| \${summary.Files[0]} \|
Expand All @@ -153,8 +154,8 @@ jobs:
\| Coverable Lines \| \${summary.Coverablelines[0]} \|
\| Total Lines \| **\${summary.Totallines[0]}** \|
\| Line Coverage \| \${formattedLineCoverage} \|
\| Covered Methods \| \${summary.Coveredmethods[0]} \|
\| Total Methods \| \${summary.Totalmethods[0]} \|
\| Covered Methods \| **\${summary.Coveredmethods[0]}** \|
\| Total Methods \| **\${summary.Totalmethods[0]}** \|
\| Method Coverage \| \${formattedMethodCoverage} \|
\`;
Expand All @@ -163,11 +164,11 @@ jobs:
function formatCoverage(coverage) {
const coverageNum = parseFloat(coverage);
if (coverageNum === 100) {
return \`\\\${\\\\rm{\\\\color{#00FF00}100\\\\\\%}}\\\$\`;
return \`\\\${\\\\rm{\\\\color{#00FF00}100\\\\\\\\%}}\\\$\`;
} else if (coverageNum >= 80) {
return \`\\\${\\\\rm{\\\\color{#FFD700}\${coverageNum}\\\\\\%}}\\\$\`;
return \`\\\${\\\\rm{\\\\color{#FFD700}\${coverageNum}\\\\\\\\%}}\\\$\`;
} else {
return \`\\\${\\\\rm{\\\\color{#8B0000}\${coverageNum}\\\\\\%}}\\\$\`;
return \`\\\${\\\\rm{\\\\color{#8B0000}\${coverageNum}\\\\\\\\%}}\\\$\`;
}
}
Expand Down

0 comments on commit d59fd32

Please sign in to comment.