| 1 |
{% extends "base.html" %} |
| 2 |
{% block content %} |
| 3 |
<h1> |
| 4 |
Test Report : {{ report.title }} |
| 5 |
</h1> |
| 6 |
|
| 7 |
{% if show_toc %} |
| 8 |
<a id="toc"></a> |
| 9 |
<table class="index-table"> |
| 10 |
<tr> |
| 11 |
<td> |
| 12 |
<ul class="toc"> |
| 13 |
{% for suite in report %} |
| 14 |
{% for classname in suite.classes %} |
| 15 |
<li>{{classname}} |
| 16 |
<ul> |
| 17 |
{% for test in suite.classes[classname].cases %} |
| 18 |
<li class="outcome outcome-{{test.outcome()}}"><a href="#{{test.anchor()}}">{{test.name}}</a>{{test.display_suffix}}</li> |
| 19 |
{% endfor %} |
| 20 |
</ul> |
| 21 |
</li> |
| 22 |
{% endfor %} |
| 23 |
{% endfor %} |
| 24 |
</ul> |
| 25 |
</td> |
| 26 |
<td class="failure-index"> |
| 27 |
<ul class="toc"> |
| 28 |
{% for suite in report %} |
| 29 |
{% for classname in suite.classes %} |
| 30 |
{% for test in suite.classes[classname].cases %} |
| 31 |
{% if test.failed() %} |
| 32 |
<li><a href="#{{test.anchor()}}">{{test.prefix()}} {{test.fullname()}}</a></li> |
| 33 |
{% endif %} |
| 34 |
{% endfor %} |
| 35 |
{% endfor %} |
| 36 |
{% endfor %} |
| 37 |
</ul> |
| 38 |
</td> |
| 39 |
</tr> |
| 40 |
</table> |
| 41 |
{% endif %} |
| 42 |
|
| 43 |
{% for suite in report %} |
| 44 |
<div class="testsuite"> |
| 45 |
<h2>Test Suite: {{ suite.name }}</h2> |
| 46 |
<a id="{{ suite.anchor() }}"></a> |
| 47 |
{% if suite.package %} |
| 48 |
<span>Package: {{suite.package}}</span> |
| 49 |
{% endif %} |
| 50 |
{% if suite.properties %} |
| 51 |
<h3>Suite Properties</h3> |
| 52 |
<table class="proplist"> |
| 53 |
{% for prop in suite.properties %} |
| 54 |
<tr> |
| 55 |
<th>{{prop.name}}</th><td>{{prop.value}}</td> |
| 56 |
</tr> |
| 57 |
{% endfor %} |
| 58 |
</table> |
| 59 |
{% endif %} |
| 60 |
<h3>Results</h3> |
| 61 |
<table class="proplist"> |
| 62 |
<tr> |
| 63 |
<th>Duration</th><td>{{suite.duration |round(3)}} sec</td> |
| 64 |
</tr> |
| 65 |
<tr> |
| 66 |
<th>Tests</th><td>{{suite.all() |length}}</td> |
| 67 |
</tr> |
| 68 |
<tr> |
| 69 |
<th>Failures</th><td>{{suite.failed()| length}}</td> |
| 70 |
</tr> |
| 71 |
</table> |
| 72 |
|
| 73 |
<div class="testclasses"> |
| 74 |
<h3>Tests</h3> |
| 75 |
{% for classname in suite.classes %} |
| 76 |
<div class="testclass"> |
| 77 |
<h4>{{classname}}</h4> |
| 78 |
<div class="testcases"> |
| 79 |
{% for test in suite.classes[classname].cases %} |
| 80 |
<div class="test outcome outcome-{{test.outcome()}}"> |
| 81 |
<a id="{{test.anchor()}}"></a> |
| 82 |
<table class="proplist"> |
| 83 |
<tr><th>Test case:</th><td><b>{{test.name}}</b></td></tr> |
| 84 |
<tr><th>Outcome:</th><td>{{test.outcome().title()}}</td></tr> |
| 85 |
<tr><th>Duration:</th><td>{{test.duration|round(3)}} sec</td></tr> |
| 86 |
{% if test.failed() %} |
| 87 |
<tr><th>Failed</th><td>{{test.failure_msg}}</td></tr> |
| 88 |
{% endif %} |
| 89 |
{% if test.skipped %} |
| 90 |
<tr><th>Skipped</th><td>{{test.skipped_msg}}</td></tr> |
| 91 |
{% endif %} |
| 92 |
</table> |
| 93 |
|
| 94 |
{% if test.failed() %} |
| 95 |
<pre>{{test.failure}}</pre> |
| 96 |
{% endif %} |
| 97 |
{% if test.skipped %} |
| 98 |
<pre>{{test.skipped}}</pre> |
| 99 |
{% endif %} |
| 100 |
|
| 101 |
{% if test.properties %} |
| 102 |
<table class="proplist"> |
| 103 |
{% for prop in test.properties %} |
| 104 |
<tr> |
| 105 |
<th>{{prop.name}}</th><td>{{prop.value}}</td> |
| 106 |
</tr> |
| 107 |
{% endfor %} |
| 108 |
</table> |
| 109 |
{% endif %} |
| 110 |
{% if test.stdout %} |
| 111 |
<div class="stdout"><i>Stdout</i><br> |
| 112 |
<pre>{{test.stdout}}</pre> |
| 113 |
</div> |
| 114 |
{% endif %} |
| 115 |
{% if test.stderr %} |
| 116 |
<div class="stderr"><i>Stderr</i><br> |
| 117 |
<pre>{{test.stderr}}</pre> |
| 118 |
</div> |
| 119 |
{% endif %} |
| 120 |
</div> |
| 121 |
{% endfor %} |
| 122 |
</div> |
| 123 |
</div> |
| 124 |
{% endfor %} |
| 125 |
</div> |
| 126 |
</div> |
| 127 |
{% if suite.stdout or suite.stderr %} |
| 128 |
<h3>Suite stdout:</h3> |
| 129 |
<pre class="stdio">{{suite.stdout}}</pre> |
| 130 |
<h3>Suite stderr:</h3> |
| 131 |
<pre class="stdio">{{suite.stderr}}</pre> |
| 132 |
{% endif %} |
| 133 |
{% endfor %} |
| 134 |
|
| 135 |
{% endblock %} |