Skip to content

Commit 5f30f2f

Browse files
committed
update formatting around coverage summary
1 parent 02ffbe4 commit 5f30f2f

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

src/coverlet.console/Program.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,9 @@ static int Main(string[] args)
122122

123123
logger.LogInformation(string.Empty);
124124
logger.LogInformation(coverageTable.ToStringAlternative());
125-
logger.LogInformation(string.Empty);
126-
logger.LogInformation($"Total Line {overallLineCoverage}%");
127-
logger.LogInformation($"Total Branch {overallBranchCoverage}%");
128-
logger.LogInformation($"Total Method {overallMethodCoverage}%");
125+
logger.LogInformation($"Total Line: {overallLineCoverage}%");
126+
logger.LogInformation($"Total Branch: {overallBranchCoverage}%");
127+
logger.LogInformation($"Total Method: {overallMethodCoverage}%");
129128

130129
if (thresholdFailed)
131130
throw new Exception(exceptionBuilder.ToString().TrimEnd(Environment.NewLine.ToCharArray()));

src/coverlet.msbuild.tasks/CoverageResultTask.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,9 @@ public override bool Execute()
115115

116116
Console.WriteLine();
117117
Console.WriteLine(coverageTable.ToStringAlternative());
118-
Console.WriteLine();
119-
Console.WriteLine($"Total Line {overallLineCoverage}%");
120-
Console.WriteLine($"Total Branch {overallBranchCoverage}%");
121-
Console.WriteLine($"Total Method {overallMethodCoverage}%");
118+
Console.WriteLine($"Total Line: {overallLineCoverage}%");
119+
Console.WriteLine($"Total Branch: {overallBranchCoverage}%");
120+
Console.WriteLine($"Total Method: {overallMethodCoverage}%");
122121

123122
if (thresholdFailed)
124123
throw new Exception(exceptionBuilder.ToString().TrimEnd(Environment.NewLine.ToCharArray()));

0 commit comments

Comments
 (0)