-
-
Notifications
You must be signed in to change notification settings - Fork 400
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #594 from bhofmei/feat-unit-test
feat(app): add unit test coverage summary page
- Loading branch information
Showing
15 changed files
with
370 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<ol class="breadcrumb"> | ||
<li>Unit test coverage</li> | ||
</ol> | ||
|
||
<div> | ||
<img src="./images/coverage-badge-statements.svg"> | ||
<img src="./images/coverage-badge-branches.svg"> | ||
<img src="./images/coverage-badge-functions.svg"> | ||
<img src="./images/coverage-badge-lines.svg"> | ||
</div> | ||
|
||
<table class="table table-bordered coverage" id="coverage-table"> | ||
<thead class="coverage-header"> | ||
<tr> | ||
<th>File</th> | ||
{{#if idColumn}} | ||
<th>Identifier</th> | ||
{{/if}} | ||
<th style="text-align:right" class="statements" data-sort-default>Statements</th> | ||
<th style="text-align:right" class="statements" data-sort-default>Branches</th> | ||
<th style="text-align:right" class="statements" data-sort-default>Functions</th> | ||
<th style="text-align:right" class="statements" data-sort-default>Lines</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{{#each files}} | ||
{{#if name}} | ||
<tr> | ||
<td> | ||
<!-- miscellaneous --> | ||
{{#if linktype}} | ||
{{#if linksubtype}} | ||
<a href="./{{linktype}}/{{linksubtype}}s.html#{{name}}">{{filePath}}</a> | ||
{{else}} | ||
<a href="./{{linktype}}s/{{name}}.html">{{filePath}}</a> | ||
{{/if}} | ||
{{else}} | ||
{{filePath}} | ||
{{/if}} | ||
</td> | ||
{{#if idColumn}} | ||
<td> | ||
{{name}} | ||
</td> | ||
{{/if}} | ||
<td align="right" data-sort="{{statements.coveragePercent}}" class="{{statements.status}}"> | ||
<span class="coverage-percent">{{statements.coveragePercent}} %</span> | ||
<span class="coverage-count">({{statements.coverageCount}})</span> | ||
</td> | ||
<td align="right" data-sort="{{branches.coveragePercent}}" class="{{branches.status}}"> | ||
<span class="coverage-percent">{{branches.coveragePercent}} %</span> | ||
<span class="coverage-count">({{branches.coverageCount}})</span> | ||
</td> | ||
<td align="right" data-sort="{{functions.coveragePercent}}" class="{{functions.status}}"> | ||
<span class="coverage-percent">{{functions.coveragePercent}} %</span> | ||
<span class="coverage-count">({{functions.coverageCount}})</span> | ||
</td> | ||
<td align="right" data-sort="{{lines.coveragePercent}}" class="{{lines.status}}"> | ||
<span class="coverage-percent">{{lines.coveragePercent}} %</span> | ||
<span class="coverage-count">({{lines.coverageCount}})</span> | ||
</td> | ||
</tr> | ||
{{/if}} | ||
{{/each}} | ||
</tbody> | ||
</table> | ||
|
||
<script src="{{relativeURL data.depth }}js/libs/tablesort.min.js"></script> | ||
<script src="{{relativeURL data.depth }}js/libs/tablesort.number.min.js"></script> | ||
<script> | ||
new Tablesort(document.getElementById('coverage-table')); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.