diff --git a/_includes/regrtest_summary.html b/_includes/regrtest_summary.html new file mode 100644 index 000000000..159263b55 --- /dev/null +++ b/_includes/regrtest_summary.html @@ -0,0 +1,72 @@ +{% assign result_total = include.pass | plus: include.skip | plus: include.fail %} +{% assign pass_percent = include.pass | times: 100.0 | divided_by: result_total | round: 2 %} +{% assign skip_percent = include.skip | times: 100.0 | divided_by: result_total | round: 2 %} +{% assign fail_percent = include.fail | times: 100.0 | divided_by: result_total | round: 2 %} + +{% assign pass_color = "#4c1" %} +{% assign skip_color = "#e4df12" %} +{% assign fail_color = "#fe7d37" %} +{% assign bar_height = "20px" %} + +{%if include.svg %} + + + + + + + + + + Results + Pass {{ pass_percent | round: 1 }}% + Skip {{ skip_percent | round: 1 }}% + Fail {{ fail_percent | round: 1 }}% + + + +{% endif %} + +{% if include.table or include.svg == nil or include.svg == false %} + +
+
+
+ Total Tests: + {{ result_total }} +
+
+ {% if include.extime %} + Exec Time: + {{ include.extime }} + {% endif %} +
+ +
+
+
+ Passed: + {{ include.pass }} ({{ pass_percent }}%) +
+
+ Skipped: + {{ include.skip }} ({{ skip_percent }}%) +
+
+ Failed: + {{ include.fail }} ({{ fail_percent }}%) +
+
+
+ +
+
+{% endif %} diff --git a/_layouts/regrtests_results.html b/_layouts/regrtests_results.html index 827656661..07924b5d5 100644 --- a/_layouts/regrtests_results.html +++ b/_layouts/regrtests_results.html @@ -27,31 +27,59 @@
+ +
+
+
+

Summary: +

+ {% assign regrtests_results = site.data.regrtests_results %} + {% include regrtest_summary.html + pass=regrtests_results.num_passed + skip=regrtests_results.num_skipped + fail=regrtests_results.num_failed + extime=regrtests_results.execution_time + %} +
+
+ {% for test in site.data.regrtests_results.suites %} +
{% for result in test %} +
+
+
+ {% if result.module %} +
+ Module: + {{result.module }} +
+ {% endif %} - {% if result.module %} -
- Module: - {{result.module }} -
- {% endif %} + {% if result.name %} +
+ Name: + {{result.name }} +
+ {% endif %} - {% if result.name %} -
- Name: - {{result.name }} -
- {% endif %} + {% if result.class %} +
+ Class: + {{result.class }} +
+ {% endif %} - {% if result.class %} -
- Class: - {{result.class }} + +
+ {% if result.num_passed and result.num_skipped and result.num_failed %} +
+ {% include regrtest_summary.html pass=result.num_passed skip=result.num_skipped fail=result.num_failed extime=result.execution_time %} +
+ {% endif %}
- {% endif %}
{% for cases in result.cases %} @@ -97,4 +125,4 @@
- \ No newline at end of file + diff --git a/assets/style.css b/assets/style.css index 040f7116a..972cc3c31 100644 --- a/assets/style.css +++ b/assets/style.css @@ -334,4 +334,12 @@ ul.list-inline { .filter.active { background-color: #FFD43B; -} \ No newline at end of file +} + +/* classes used in the results summary */ + +.cell_summary { + flex: 4; + border-bottom: 1px solid white; + align-self: end; +}