From 151643bd4221e2b3a87413c5e165e7286519d1f0 Mon Sep 17 00:00:00 2001 From: Ville Vesilehto Date: Sat, 18 Jan 2025 22:17:46 +0200 Subject: [PATCH] fix: add output and tests for GitHub and Azure DevOps Added missing test cases for GitHub and AzureDevOps output formats in output_test.go. Also added OutputAzureDevOps to the list of available output formats in Outputs(). Signed-off-by: Ville Vesilehto --- output/output.go | 1 + output/output_test.go | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/output/output.go b/output/output.go index 3ce689c012..9b1ec6a66d 100644 --- a/output/output.go +++ b/output/output.go @@ -71,5 +71,6 @@ func Outputs() []string { OutputTable, OutputJUnit, OutputGitHub, + OutputAzureDevOps, } } diff --git a/output/output_test.go b/output/output_test.go index d1e4617fd3..4a4669a908 100644 --- a/output/output_test.go +++ b/output/output_test.go @@ -31,6 +31,14 @@ func TestGetOutputter(t *testing.T) { input: OutputJUnit, expected: NewJUnit(os.Stdout, false), }, + { + input: OutputGitHub, + expected: NewGitHub(os.Stdout), + }, + { + input: OutputAzureDevOps, + expected: NewAzureDevOps(os.Stdout), + }, { input: "unknown_format", expected: NewStandard(os.Stdout),