From 3f61360fa11fbc9e61585f40e197b4738f963829 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Sun, 14 Apr 2019 20:56:11 +0100 Subject: [PATCH] ci: Restructure the HTML report We should show all the possible result sections: - passed - skipped - expected failures - failures - timed out Even if we consider the first three to be successes. --- .gitlab-ci/meson-html-report.py | 120 +++++++++++++++++++++++++------- 1 file changed, 93 insertions(+), 27 deletions(-) diff --git a/.gitlab-ci/meson-html-report.py b/.gitlab-ci/meson-html-report.py index 4a2b3643f4..1bee25791d 100755 --- a/.gitlab-ci/meson-html-report.py +++ b/.gitlab-ci/meson-html-report.py @@ -63,11 +63,26 @@ div.report-meta { color: #3c3c3c; } -span.failure { - color: rgb(224, 27, 36); +span.result { font-weight: bold; } +span.pass { + color: rgb(51, 209, 122); +} + +span.skip { + color: rgb(255, 163, 72); +} + +span.fail { + color: rgb(224, 27, 36); +} + +span.xfail { + color: rgb(163, 71, 186); +} + div.result { border-top: 1px solid #c0c0c0; padding-top: 1em; @@ -104,6 +119,14 @@ ul.passed li:after { content: ","; } +ul.passed li:last-child:after { + content: ""; +} + +ul.images { + padding-bottom: 1em; +} + ul.images li { display: inline; } @@ -144,35 +167,78 @@ ul.images li {

Passed

+ +

Skipped

+ + +

Expected failures

+ +
+ +
+

Failed

+ + +

Timed out

+
- {% for failure in suite_result.failures %} - {% if loop.first %} -
-

Failed

- -
- {% endif %} - {% endfor %} {% endfor %}