fix(license): add license handling to JUnit template (#7409)

This commit is contained in:
psibre
2024-09-03 10:31:55 +02:00
committed by GitHub
parent 2d97700d10
commit f80183c113

View File

@@ -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>