forked from mad-eye/meteor-mocha-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
testReport.html
40 lines (36 loc) · 881 Bytes
/
testReport.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<template name="mochaTestReport">
<div class="mochaTestReport">
<div id="mocha"></div>
</div>
</template>
<template name="serverTestReport">
<hr>
{{#with testReport}}
<h2>Server Test Report</h2>
<h3>{{failures}} failing, {{passes}} passing, {{pending}} pending</h3>
{{/with}}
<div class="mochaTestReport">
<ul id="mocha-report">
{{#each rootSuites}}
{{> mochaTestObject}}
{{/each}}
</ul>
</div>
</template>
<template name="mochaTestObject">
{{#if suite }}
<li class="suite">
<h1>{{title}}</h1>
{{#each children}}
{{> mochaTestObject}}
{{/each}}
</li>
{{else}}
<li class="test {{stateClass}} {{speed}}">
<h2>{{title}} <span class="duration">{{duration}}ms</span></h2>
{{#if err}}
<pre><code>{{err.stack}}</code></pre>
{{/if}}
</li>
{{/if}}
</template>