diff --git a/.coverage-comment-template.svelte b/.coverage-comment-template.svelte index 8455cd02f..ae2267b27 100644 --- a/.coverage-comment-template.svelte +++ b/.coverage-comment-template.svelte @@ -1,178 +1,194 @@

Coverage Report

-Commit: {short_commit_sha}
-Base: {base_ref}@{base_short_commit_sha}

+Commit:{short_commit_sha}
+Base: {base_ref}@{base_short_commit_sha}

- - - {#if has_base_data} - - {/if} - - - - {#each summary_list as {type, percent}} - - + + {#if has_base_data} - + {/if} - - - {/each} - -
TypeBaseThis PR
{type}
Type - {#if Number.isFinite(percent.base)} -  {percent.base}% - {:else} - - - {/if} - Base - {#if Number.isFinite(percent.total)} -  {percent.total}% - {#if has_base_data} -  ({formatPercentDiff(percent.diff)}) - {/if} - {:else} - - - {/if} -
- -
- Details (changed testable files):
- - - - - - - + - {#each changed_files_coverage_data as [file, data]} - {@const percents = [ - data.statements.pct, - data.branches.pct, - data.functions.pct, - data.lines.pct - ]} - - - {#each percents as percent} - - {/each} - - {/each} + {#each summary_list as { type, percent }} + + + {#if has_base_data} + + {/if} + + + {/each} -
FileStatementsBranchesFunctionsLinesThis PR
- {file} - - {#if Number.isFinite(percent)} -  {percent}% - {:else} - - - {/if} -
{type} + {#if Number.isFinite(percent.base)} +  {percent.base}% + {:else} + - + {/if} + + {#if Number.isFinite(percent.total)} +  {percent.total}% + {#if has_base_data} +  ({formatPercentDiff(percent.diff)}) + {/if} + {:else} + - + {/if} +
-
\ No newline at end of file + + +
+ Details (changed files):
+ + + + + + + + + + {#each changed_files_coverage_data as [file, data]} + {@const percents = [ + data.statements.pct, + data.branches.pct, + data.functions.pct, + data.lines.pct, + ]} + + + {#each percents as percent} + + {/each} + + {/each} + +
FileStatementsBranchesFunctionsLines
+ {file} + + {#if Number.isFinite(percent)} +  {percent}% + {:else} + - + {/if} +
+