Skip to content

Commit

Permalink
fix(license): add license handling to JUnit template (#7409)
Browse files Browse the repository at this point in the history
  • Loading branch information
psibre authored Sep 3, 2024
1 parent 2d97700 commit f80183c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions contrib/junit.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,16 @@
</testcase>
{{- end }}
</testsuite>

{{- if .Licenses }}
{{- $licenses := len .Licenses }}
<testsuite tests="{{ $licenses }}" failures="{{ $licenses }}" name="{{ .Target }}" time="0">{{ range .Licenses }}
<testcase classname="{{ .PkgName }}" name="[{{ .Severity }}] {{ .Name }}">
<failure/>
</testcase>
{{- end }}
</testsuite>
{{- end }}

{{- end }}
</testsuites>

0 comments on commit f80183c

Please sign in to comment.