Skip to content

Commit

Permalink
fix(report): Update junit.tpl (#2677)
Browse files Browse the repository at this point in the history
Add explicit name="trivy" in the testsuite element
  • Loading branch information
trottomv authored Aug 8, 2022
1 parent de365c8 commit 63c33bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/junit.tpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" ?>
<testsuites>
<testsuites name="trivy">
{{- range . -}}
{{- $failures := len .Vulnerabilities }}
<testsuite tests="{{ $failures }}" failures="{{ $failures }}" name="{{ .Target }}" errors="0" skipped="0" time="">
Expand Down Expand Up @@ -28,4 +28,4 @@
{{- end }}
</testsuite>
{{- end }}
</testsuites>
</testsuites>

0 comments on commit 63c33bf

Please sign in to comment.