Compare commits

...

2 Commits

Author SHA1 Message Date
David Robertson
4ecbaed94b Changelog 2022-07-12 14:46:16 +01:00
David Robertson
b3a72a6ecc Jump directly to failure in gotestfmt 2022-07-12 14:46:16 +01:00
2 changed files with 14 additions and 0 deletions

View File

@@ -26,6 +26,19 @@ which is under the Unlicense licence.
{{- with .Output -}}
{{- . -}}{{- "\n" -}}
{{- end -}}
{{- /* Output an error marker if there are any failing tests, so GitHub will skip straight to them */ -}}
{{- $anyFailures := false -}}
{{- range .TestCases -}}
{{- if and (ne .Result "PASS") (ne .Result "SKIP") -}}
{{- $anyFailures = true -}}
{{- end -}}
{{- end -}}
{{- if $anyFailures -}}
::error title=Test Failures::At least one test failed
{{- printf "\n" -}}
{{- end -}}
{{- with .TestCases -}}
{{- /* Failing tests are first */ -}}
{{- range . -}}

1
changelog.d/13180.misc Normal file
View File

@@ -0,0 +1 @@
Jump directly to failure in `gotestfmt` output.