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 7, 2024
1 parent 9faa98d commit aab7772
Showing 1 changed file with 18 additions and 25 deletions.
43 changes: 18 additions & 25 deletions .github/workflows/UnitTestsAndCodeCoverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,38 +136,31 @@ jobs:
const lineCoverage = summary.Linecoverage[0];
const methodCoverage = summary.Methodcoverage[0];
let formattedLineCoverage;
let formattedMethodCoverage;
let formattedLineCoverage = lineCoverage === "100"
? `\\textbf{\\color{green}{${lineCoverage}\\%}}`
: `\\textbf{\\color{red}{${lineCoverage}\\%}}`;
if (lineCoverage === "100") {
formattedLineCoverage = `\\textbf{\\color{green}{${summary.Linecoverage[0]}\\%}}`;
} else {
formattedLineCoverage = `\\textbf{\\color{red}{${summary.Linecoverage[0]}\\%}}`;
}
if (methodCoverage === "100") {
formattedMethodCoverage = `\\textbf{\\color{green}{${summary.Methodcoverage[0]}\\%}}`;
} else {
formattedMethodCoverage = `\\textbf{\\color{red}{${summary.Methodcoverage[0]}\\%}}`;
}
let formattedMethodCoverage = methodCoverage === "100"
? `\\textbf{\\color{green}{${methodCoverage}\\%}}`
: `\\textbf{\\color{red}{${methodCoverage}\\%}}`;
return `
## 🍉 Code Coverage Summary 🧐
| Metric | Value |
|----------------------|------------------------------|
| Generated on | \${summary.Generatedon[0]} |
| Assemblies | \${summary.Assemblies[0]} |
| Classes | \${summary.Classes[0]} |
| Files | \${summary.Files[0]} |
| Covered Lines | \${summary.Coveredlines[0]} |
| Uncovered Lines | \${summary.Uncoveredlines[0]} |
| Coverable Lines | \${summary.Coverablelines[0]} |
| Total Lines | \${summary.Totallines[0]} |
| Line Coverage | \${foformattedLineCoverage} |
| Covered Methods | \${summary.Coveredmethods[0]} |
| Total Methods | \${summary.Totalmethods[0]} |
| Method Coverage | \${formattedMethodCoverage} |
| Generated on | ${summary.Generatedon[0]} |
| Assemblies | ${summary.Assemblies[0]} |
| Classes | ${summary.Classes[0]} |
| Files | ${summary.Files[0]} |
| Covered Lines | ${summary.Coveredlines[0]} |
| Uncovered Lines | ${summary.Uncoveredlines[0]} |
| Coverable Lines | ${summary.Coverablelines[0]} |
| Total Lines | ${summary.Totallines[0]} |
| Line Coverage | ${formattedLineCoverage} |
| Covered Methods | ${summary.Coveredmethods[0]} |
| Total Methods | ${summary.Totalmethods[0]} |
| Method Coverage | ${formattedMethodCoverage} |
---
`;
Expand Down

0 comments on commit aab7772

Please sign in to comment.