Gestion des sous suites dans le template par défaut
This commit is contained in:
parent
9d84cfbd09
commit
9ce3cf3f5c
|
@ -22,10 +22,7 @@
|
|||
| {{ template "status_icon" .Status }} | `{{ .Name }}` ||
|
||||
{{- end -}}
|
||||
{{- range .Suites }}
|
||||
{{- $suite := . }}
|
||||
{{- range .Tests }}
|
||||
| {{ template "status_icon" .Status }} | `{{ .Name }}` | `{{ $suite.Name }}` |
|
||||
{{- end -}}
|
||||
{{- template "suite" . -}}
|
||||
{{end}}
|
||||
|
||||
</details>
|
||||
|
@ -79,4 +76,14 @@
|
|||
{{- if eq . "passed" -}}✓{{- end -}}
|
||||
{{- if or (eq . "error") (eq . "failed") -}}⨯{{- end -}}
|
||||
{{- if eq . "skipped" -}}⏩{{- end -}}
|
||||
{{end}}
|
||||
|
||||
{{define "suite"}}
|
||||
{{- $suite := . }}
|
||||
{{- range .Tests }}
|
||||
| {{ template "status_icon" .Status }} | `{{ .Name }}` | `{{ $suite.Name }}` |
|
||||
{{- end -}}
|
||||
{{- range .Suites }}
|
||||
{{- template "suite" . }}
|
||||
{{- end -}}
|
||||
{{end}}
|
Loading…
Reference in New Issue