Skip to content

Commit dfbd211

Browse files
committed
Replace skipped summary color w/ expected failure and failed with skipped
1 parent 37d6700 commit dfbd211

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

_includes/regrtest_summary.html

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
{% assign result_total = include.pass | plus: include.skip | plus: include.fail %}
1+
{% assign result_total = include.pass | plus: include.expectedfail | plus: include.skip %}
22
{% assign pass_percent = include.pass | times: 100.0 | divided_by: result_total | round: 2 %}
3+
{% assign expectedfail_percent = include.expectedfail | times: 100.0 | divided_by: result_total | round: 2 %}
34
{% assign skip_percent = include.skip | times: 100.0 | divided_by: result_total | round: 2 %}
4-
{% assign fail_percent = include.fail | times: 100.0 | divided_by: result_total | round: 2 %}
55

66
{% assign pass_color = "#4c1" %}
7-
{% assign skip_color = "#e4df12" %}
8-
{% assign fail_color = "#fe7d37" %}
7+
{% assign expectedfail_color = "#e4df12" %}
8+
{% assign skip_color = "#fe7d37" %}
99
{% assign bar_height = "20px" %}
1010

1111
{%if include.svg %}
@@ -14,16 +14,16 @@
1414
<g shape-rendering="crispEdges">
1515
<rect width="49" height="20" fill="#555" />
1616
<rect x="49" width="65" height="20" fill="{{ pass_color }}" />
17-
<rect x="114" width="65" height="20" fill="{{ skip_color }}" />
18-
<rect x="179" width="65" height="20" fill="{{ fail_color }}" />
17+
<rect x="114" width="65" height="20" fill="{{ expectedfail_color }}" />
18+
<rect x="179" width="65" height="20" fill="{{ skip_color }}" />
1919
</g>
2020
<g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif"
2121
text-rendering="geometricPrecision" font-size="110">
2222
<text x="255" y="140" transform="scale(.1)"
2323
textLength="390">Results</text>
2424
<text x="805" y="140" transform="scale(.1)" textLength="550">Pass {{ pass_percent | round: 1 }}%</text>
25-
<text x="1455" y="140" transform="scale(.1)" textLength="550">Skip {{ skip_percent | round: 1 }}%</text>
26-
<text x="2105" y="140" transform="scale(.1)" textLength="550">Fail {{ fail_percent | round: 1 }}%</text>
25+
<text x="1455" y="140" transform="scale(.1)" textLength="550">Expected Failure {{ expectedfail_percent | round: 1 }}%</text>
26+
<text x="2105" y="140" transform="scale(.1)" textLength="550">Skip {{ skip_percent | round: 1 }}%</text>
2727
</g>
2828
</svg>
2929

@@ -50,20 +50,20 @@
5050
<span class="font-secondary">Passed: </span>
5151
{{ include.pass }} ({{ pass_percent }}%)
5252
</div>
53+
<div class ="cell_summary">
54+
<span class="font-secondary">Expected Failure: </span>
55+
{{ include.expectedfail }} ({{ expectedfail_percent }}%)
56+
</div>
5357
<div class="cell_summary">
5458
<span class="font-secondary">Skipped: </span>
5559
{{ include.skip }} ({{ skip_percent }}%)
5660
</div>
57-
<div class ="cell_summary">
58-
<span class="font-secondary">Failed: </span>
59-
{{ include.fail }} ({{ fail_percent }}%)
60-
</div>
6161
</div>
6262
<div class="row"
6363
style="background: linear-gradient(to right,
6464
{{ pass_color }} {{ pass_percent }}%,
65-
{{ skip_color }} {{ pass_percent }}% {{ skip_percent | plus: pass_percent }}%,
66-
{{ fail_color }} {{ skip_percent | plus: pass_percent }}% {{ fail_percent | plus: pass_percent | plus: skip_percent }}%
65+
{{ expectedfail_color }} {{ pass_percent }}% {{ expectedfail_percent | plus: pass_percent }}%,
66+
{{ skip_color }} {{ expectedfail_percent | plus: pass_percent }}% {{ skip_percent | plus: pass_percent | plus: expectedfail_percent }}%
6767
);
6868
height: {{ bar_height }};">
6969

_layouts/regrtests_results.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ <h2 class="font-secondary">Summary:</span>
3838
{% assign regrtests_results = site.data.regrtests_results %}
3939
{% include regrtest_summary.html
4040
pass=regrtests_results.num_passed
41+
expectedfail=regrtests_results.num_expected_failures
4142
skip=regrtests_results.num_skipped
42-
fail=regrtests_results.num_failed
4343
extime=regrtests_results.execution_time
4444
%}
4545
</div>
@@ -78,7 +78,7 @@ <h2 class="font-secondary">Summary:</span>
7878
</div>
7979
{% if result.num_passed and result.num_skipped and result.num_failed %}
8080
<div class="w-md-50 float-md-right">
81-
{% include regrtest_summary.html pass=result.num_passed skip=result.num_skipped fail=result.num_failed extime=result.execution_time %}
81+
{% include regrtest_summary.html pass=result.num_passed expectedfail=result.num_expected_failures skip=result.num_skipped extime=result.execution_time %}
8282
</div>
8383
{% endif %}
8484
</div>

0 commit comments

Comments
 (0)