Skip to content

Commit 066c546

Browse files
committed
ng test --code-coverage
1 parent 0806bbc commit 066c546

22 files changed

+2895
-0
lines changed

coverage/base.css

+212
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,212 @@
1+
body, html {
2+
margin:0; padding: 0;
3+
height: 100%;
4+
}
5+
body {
6+
font-family: Helvetica Neue, Helvetica, Arial;
7+
font-size: 14px;
8+
color:#333;
9+
}
10+
.small { font-size: 12px; }
11+
*, *:after, *:before {
12+
-webkit-box-sizing:border-box;
13+
-moz-box-sizing:border-box;
14+
box-sizing:border-box;
15+
}
16+
h1 { font-size: 20px; margin: 0;}
17+
h2 { font-size: 14px; }
18+
pre {
19+
font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace;
20+
margin: 0;
21+
padding: 0;
22+
-moz-tab-size: 2;
23+
-o-tab-size: 2;
24+
tab-size: 2;
25+
}
26+
a { color:#0074D9; text-decoration:none; }
27+
a:hover { text-decoration:underline; }
28+
.strong { font-weight: bold; }
29+
.space-top1 { padding: 10px 0 0 0; }
30+
.pad2y { padding: 20px 0; }
31+
.pad1y { padding: 10px 0; }
32+
.pad2x { padding: 0 20px; }
33+
.pad2 { padding: 20px; }
34+
.pad1 { padding: 10px; }
35+
.space-left2 { padding-left:55px; }
36+
.space-right2 { padding-right:20px; }
37+
.center { text-align:center; }
38+
.clearfix { display:block; }
39+
.clearfix:after {
40+
content:'';
41+
display:block;
42+
height:0;
43+
clear:both;
44+
visibility:hidden;
45+
}
46+
.fl { float: left; }
47+
@media only screen and (max-width:640px) {
48+
.col3 { width:100%; max-width:100%; }
49+
.hide-mobile { display:none!important; }
50+
}
51+
52+
.quiet {
53+
color: #7f7f7f;
54+
color: rgba(0,0,0,0.5);
55+
}
56+
.quiet a { opacity: 0.7; }
57+
58+
.fraction {
59+
font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
60+
font-size: 10px;
61+
color: #555;
62+
background: #E8E8E8;
63+
padding: 4px 5px;
64+
border-radius: 3px;
65+
vertical-align: middle;
66+
}
67+
68+
div.path a:link, div.path a:visited { color: #333; }
69+
table.coverage {
70+
border-collapse: collapse;
71+
margin: 10px 0 0 0;
72+
padding: 0;
73+
}
74+
75+
table.coverage td {
76+
margin: 0;
77+
padding: 0;
78+
vertical-align: top;
79+
}
80+
table.coverage td.line-count {
81+
text-align: right;
82+
padding: 0 5px 0 20px;
83+
}
84+
table.coverage td.line-coverage {
85+
text-align: right;
86+
padding-right: 10px;
87+
min-width:20px;
88+
}
89+
90+
table.coverage td span.cline-any {
91+
display: inline-block;
92+
padding: 0 5px;
93+
width: 100%;
94+
}
95+
.missing-if-branch {
96+
display: inline-block;
97+
margin-right: 5px;
98+
border-radius: 3px;
99+
position: relative;
100+
padding: 0 4px;
101+
background: #333;
102+
color: yellow;
103+
}
104+
105+
.skip-if-branch {
106+
display: none;
107+
margin-right: 10px;
108+
position: relative;
109+
padding: 0 4px;
110+
background: #ccc;
111+
color: white;
112+
}
113+
.missing-if-branch .typ, .skip-if-branch .typ {
114+
color: inherit !important;
115+
}
116+
.coverage-summary {
117+
border-collapse: collapse;
118+
width: 100%;
119+
}
120+
.coverage-summary tr { border-bottom: 1px solid #bbb; }
121+
.keyline-all { border: 1px solid #ddd; }
122+
.coverage-summary td, .coverage-summary th { padding: 10px; }
123+
.coverage-summary tbody { border: 1px solid #bbb; }
124+
.coverage-summary td { border-right: 1px solid #bbb; }
125+
.coverage-summary td:last-child { border-right: none; }
126+
.coverage-summary th {
127+
text-align: left;
128+
font-weight: normal;
129+
white-space: nowrap;
130+
}
131+
.coverage-summary th.file { border-right: none !important; }
132+
.coverage-summary th.pct { }
133+
.coverage-summary th.pic,
134+
.coverage-summary th.abs,
135+
.coverage-summary td.pct,
136+
.coverage-summary td.abs { text-align: right; }
137+
.coverage-summary td.file { white-space: nowrap; }
138+
.coverage-summary td.pic { min-width: 120px !important; }
139+
.coverage-summary tfoot td { }
140+
141+
.coverage-summary .sorter {
142+
height: 10px;
143+
width: 7px;
144+
display: inline-block;
145+
margin-left: 0.5em;
146+
background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent;
147+
}
148+
.coverage-summary .sorted .sorter {
149+
background-position: 0 -20px;
150+
}
151+
.coverage-summary .sorted-desc .sorter {
152+
background-position: 0 -10px;
153+
}
154+
.status-line { height: 10px; }
155+
/* dark red */
156+
.red.solid, .status-line.low, .low .cover-fill { background:#C21F39 }
157+
.low .chart { border:1px solid #C21F39 }
158+
/* medium red */
159+
.cstat-no, .fstat-no, .cbranch-no, .cbranch-no { background:#F6C6CE }
160+
/* light red */
161+
.low, .cline-no { background:#FCE1E5 }
162+
/* light green */
163+
.high, .cline-yes { background:rgb(230,245,208) }
164+
/* medium green */
165+
.cstat-yes { background:rgb(161,215,106) }
166+
/* dark green */
167+
.status-line.high, .high .cover-fill { background:rgb(77,146,33) }
168+
.high .chart { border:1px solid rgb(77,146,33) }
169+
170+
171+
.medium .chart { border:1px solid #666; }
172+
.medium .cover-fill { background: #666; }
173+
174+
.cbranch-no { background: yellow !important; color: #111; }
175+
176+
.cstat-skip { background: #ddd; color: #111; }
177+
.fstat-skip { background: #ddd; color: #111 !important; }
178+
.cbranch-skip { background: #ddd !important; color: #111; }
179+
180+
span.cline-neutral { background: #eaeaea; }
181+
.medium { background: #eaeaea; }
182+
183+
.cover-fill, .cover-empty {
184+
display:inline-block;
185+
height: 12px;
186+
}
187+
.chart {
188+
line-height: 0;
189+
}
190+
.cover-empty {
191+
background: white;
192+
}
193+
.cover-full {
194+
border-right: none !important;
195+
}
196+
pre.prettyprint {
197+
border: none !important;
198+
padding: 0 !important;
199+
margin: 0 !important;
200+
}
201+
.com { color: #999 !important; }
202+
.ignore-none { color: #999; font-weight: normal; }
203+
204+
.wrapper {
205+
min-height: 100%;
206+
height: auto !important;
207+
height: 100%;
208+
margin: 0 auto -48px;
209+
}
210+
.footer, .push {
211+
height: 48px;
212+
}

coverage/index.html

+138
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<title>Code coverage report for All files</title>
5+
<meta charset="utf-8" />
6+
<link rel="stylesheet" href="prettify.css" />
7+
<link rel="stylesheet" href="base.css" />
8+
<meta name="viewport" content="width=device-width, initial-scale=1">
9+
<style type='text/css'>
10+
.coverage-summary .sorter {
11+
background-image: url(sort-arrow-sprite.png);
12+
}
13+
</style>
14+
</head>
15+
<body>
16+
<div class='wrapper'>
17+
<div class='pad1'>
18+
<h1>
19+
All files
20+
</h1>
21+
<div class='clearfix'>
22+
</div>
23+
</div>
24+
<div class='status-line medium'></div>
25+
<div class="pad1">
26+
<table class="coverage-summary">
27+
<thead>
28+
<tr>
29+
<th data-col="file" data-fmt="html" data-html="true" class="file">File</th>
30+
<th data-col="pic" data-type="number" data-fmt="html" data-html="true" class="pic"></th>
31+
<th data-col="statements" data-type="number" data-fmt="pct" class="pct">Statements</th>
32+
<th data-col="statements_raw" data-type="number" data-fmt="html" class="abs"></th>
33+
<th data-col="branches" data-type="number" data-fmt="pct" class="pct">Branches</th>
34+
<th data-col="branches_raw" data-type="number" data-fmt="html" class="abs"></th>
35+
<th data-col="functions" data-type="number" data-fmt="pct" class="pct">Functions</th>
36+
<th data-col="functions_raw" data-type="number" data-fmt="html" class="abs"></th>
37+
<th data-col="lines" data-type="number" data-fmt="pct" class="pct">Lines</th>
38+
<th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
39+
</tr>
40+
</thead>
41+
<tbody><tr>
42+
<td class="file high" data-value="src"><a href="src/index.html">src</a></td>
43+
<td data-value="" class="pic high"><div class="chart"><div class="cover-fill" style="width: 0%;"></div><div class="cover-empty" style="width:100%;"></div></div></td>
44+
<td data-value="" class="pct high">%</td>
45+
<td data-value="" class="abs high">/</td>
46+
<td data-value="" class="pct high">%</td>
47+
<td data-value="" class="abs high">/</td>
48+
<td data-value="" class="pct high">%</td>
49+
<td data-value="" class="abs high">/</td>
50+
<td data-value="" class="pct high">%</td>
51+
<td data-value="" class="abs high">/</td>
52+
</tr>
53+
54+
<tr>
55+
<td class="file medium" data-value="src/app"><a href="src/app/index.html">src/app</a></td>
56+
<td data-value="" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 0%;"></div><div class="cover-empty" style="width:100%;"></div></div></td>
57+
<td data-value="" class="pct medium">%</td>
58+
<td data-value="" class="abs medium">/</td>
59+
<td data-value="" class="pct low">%</td>
60+
<td data-value="" class="abs low">/</td>
61+
<td data-value="" class="pct low">%</td>
62+
<td data-value="" class="abs low">/</td>
63+
<td data-value="" class="pct medium">%</td>
64+
<td data-value="" class="abs medium">/</td>
65+
</tr>
66+
67+
<tr>
68+
<td class="file high" data-value="src/app/hero"><a href="src/app/hero/index.html">src/app/hero</a></td>
69+
<td data-value="" class="pic high"><div class="chart"><div class="cover-fill" style="width: 0%;"></div><div class="cover-empty" style="width:100%;"></div></div></td>
70+
<td data-value="" class="pct high">%</td>
71+
<td data-value="" class="abs high">/</td>
72+
<td data-value="" class="pct high">%</td>
73+
<td data-value="" class="abs high">/</td>
74+
<td data-value="" class="pct medium">%</td>
75+
<td data-value="" class="abs medium">/</td>
76+
<td data-value="" class="pct medium">%</td>
77+
<td data-value="" class="abs medium">/</td>
78+
</tr>
79+
80+
<tr>
81+
<td class="file medium" data-value="src/app/hero-detail"><a href="src/app/hero-detail/index.html">src/app/hero-detail</a></td>
82+
<td data-value="" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 0%;"></div><div class="cover-empty" style="width:100%;"></div></div></td>
83+
<td data-value="" class="pct medium">%</td>
84+
<td data-value="" class="abs medium">/</td>
85+
<td data-value="" class="pct low">%</td>
86+
<td data-value="" class="abs low">/</td>
87+
<td data-value="" class="pct medium">%</td>
88+
<td data-value="" class="abs medium">/</td>
89+
<td data-value="" class="pct medium">%</td>
90+
<td data-value="" class="abs medium">/</td>
91+
</tr>
92+
93+
<tr>
94+
<td class="file high" data-value="src/app/heroes"><a href="src/app/heroes/index.html">src/app/heroes</a></td>
95+
<td data-value="" class="pic high"><div class="chart"><div class="cover-fill" style="width: 0%;"></div><div class="cover-empty" style="width:100%;"></div></div></td>
96+
<td data-value="" class="pct high">%</td>
97+
<td data-value="" class="abs high">/</td>
98+
<td data-value="" class="pct medium">%</td>
99+
<td data-value="" class="abs medium">/</td>
100+
<td data-value="" class="pct high">%</td>
101+
<td data-value="" class="abs high">/</td>
102+
<td data-value="" class="pct high">%</td>
103+
<td data-value="" class="abs high">/</td>
104+
</tr>
105+
106+
<tr>
107+
<td class="file high" data-value="src/app/strength"><a href="src/app/strength/index.html">src/app/strength</a></td>
108+
<td data-value="" class="pic high"><div class="chart"><div class="cover-fill" style="width: 0%;"></div><div class="cover-empty" style="width:100%;"></div></div></td>
109+
<td data-value="" class="pct high">%</td>
110+
<td data-value="" class="abs high">/</td>
111+
<td data-value="" class="pct high">%</td>
112+
<td data-value="" class="abs high">/</td>
113+
<td data-value="" class="pct high">%</td>
114+
<td data-value="" class="abs high">/</td>
115+
<td data-value="" class="pct high">%</td>
116+
<td data-value="" class="abs high">/</td>
117+
</tr>
118+
119+
</tbody>
120+
</table>
121+
</div><div class='push'></div><!-- for sticky footer -->
122+
</div><!-- /wrapper -->
123+
<div class='footer quiet pad2 space-top1 center small'>
124+
Code coverage
125+
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Sun Feb 09 2020 20:09:42 GMT-0500 (Eastern Standard Time)
126+
</div>
127+
</div>
128+
<script src="prettify.js"></script>
129+
<script>
130+
window.onload = function () {
131+
if (typeof prettyPrint === 'function') {
132+
prettyPrint();
133+
}
134+
};
135+
</script>
136+
<script src="sorter.js"></script>
137+
</body>
138+
</html>

0 commit comments

Comments
 (0)