File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change
1
+ {% macro test_result(r) -%}
2
+ passed: {{ r.passed.len() }}, ignored: {{ r.ignored.len() }}
3
+ {%- endmacro %}
4
+
1
5
<li>
2
6
<details>
3
7
<summary>{{ name }} ({{ test_count() }} test{{ test_count() | pluralize }})</summary>
15
19
{% for test in root_tests %}
16
20
<li>
17
21
{% if let Some(result) = test.single_test() %}
18
- <b>{{ test.name }}</b> ({{ result.passed.len() }} passed, {{ result.ignored.len() }} ignored )
22
+ <b>{{ test.name }}</b> ({% call test_result(result) %} )
19
23
{% else %}
20
24
<b>{{ test.name }}</b> ({{ test.revisions.len() }} revision{{ test.revisions.len() | pluralize }})
21
25
<ul>
22
26
{% for (revision, result) in test.revisions %}
23
- <li>#<i>{{ revision }}</i> ({{ result.passed.len() }} passed, {{ result.ignored.len() }} ignored )</li>
27
+ <li>#<i>{{ revision }}</i> ({% call test_result(result) %} )</li>
24
28
{% endfor %}
25
29
</ul>
26
30
{% endif %}
Original file line number Diff line number Diff line change 7
7
<div>
8
8
<div class="test-count">Total tests: {{ test_count }}</div>
9
9
<div>
10
- To find tests that haven't been executed anywhere, click on "Open all" and search for "(0 passed".
10
+ To find tests that haven't been executed anywhere, click on "Open all" and search for "passed: 0 ".
11
11
</div>
12
12
</div>
13
13
<div>
You can’t perform that action at this time.
0 commit comments