diff --git a/src/SQLCover/SQLCover/CoverageResult.cs b/src/SQLCover/SQLCover/CoverageResult.cs index 195462f..eae32f2 100644 --- a/src/SQLCover/SQLCover/CoverageResult.cs +++ b/src/SQLCover/SQLCover/CoverageResult.cs @@ -137,19 +137,92 @@ public string Html() transform: rotate(-135deg); -webkit-transform: rotate(-135deg); } + + +
"); + builder.Append( + "object name | statement count | covered statement count | coverage % | "); - .covered-statement{ - background-color: greenyellow; + builder.AppendFormat("
{0} | {1} | {2} | {3:0.00} |
{0} | {1} | {2} | {3:0.00} |
"); + } + + + builder.AppendFormat("", b.ObjectName); + + var tempBuffer = b.Text; + foreach (var statement in b.Statements.OrderByDescending(p => p.Offset)) + { + if (statement.HitCount > 0) + { + var start = tempBuffer.Substring(0, statement.Offset + statement.Length); + var end = tempBuffer.Substring(statement.Offset + statement.Length); + tempBuffer = start + "" + end; + + start = tempBuffer.Substring(0, statement.Offset); + end = tempBuffer.Substring(statement.Offset); + tempBuffer = start + "" + end; + } + } + + builder.Append(tempBuffer + "