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 }}` ||
|
| {{ template "status_icon" .Status }} | `{{ .Name }}` ||
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- range .Suites }}
|
{{- range .Suites }}
|
||||||
{{- $suite := . }}
|
{{- template "suite" . -}}
|
||||||
{{- range .Tests }}
|
|
||||||
| {{ template "status_icon" .Status }} | `{{ .Name }}` | `{{ $suite.Name }}` |
|
|
||||||
{{- end -}}
|
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
@ -79,4 +76,14 @@
|
||||||
{{- if eq . "passed" -}}✓{{- end -}}
|
{{- if eq . "passed" -}}✓{{- end -}}
|
||||||
{{- if or (eq . "error") (eq . "failed") -}}⨯{{- end -}}
|
{{- if or (eq . "error") (eq . "failed") -}}⨯{{- end -}}
|
||||||
{{- if eq . "skipped" -}}⏩{{- 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}}
|
{{end}}
|
Loading…
Reference in New Issue