From 311754f15e451cc4f801ff0d56befc2a5d56921b Mon Sep 17 00:00:00 2001 From: DmitriyLewen Date: Fri, 8 Dec 2023 14:06:58 +0600 Subject: [PATCH] fix: don't mark passed tests as failed in junit.tpl --- contrib/junit.tpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contrib/junit.tpl b/contrib/junit.tpl index 0a2d7ee32341..227cfa9246de 100644 --- a/contrib/junit.tpl +++ b/contrib/junit.tpl @@ -14,8 +14,7 @@ {{- end }} -{{- $failures := len .Misconfigurations }} - + {{- if not (eq .Type "") }} @@ -23,7 +22,9 @@ {{- end -}} {{ range .Misconfigurations }} + {{- if (eq .Status "FAIL") }} {{ escapeXML .Description }} + {{- end }} {{- end }}