From c0332e8fa13f4939de17c856b2e71fd093847253 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 15 Oct 2021 09:04:40 +0300 Subject: add dcat color output test --- integrationtests/dcat_test.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'integrationtests/dcat_test.go') diff --git a/integrationtests/dcat_test.go b/integrationtests/dcat_test.go index bd2efe5..fd5db5d 100644 --- a/integrationtests/dcat_test.go +++ b/integrationtests/dcat_test.go @@ -50,3 +50,24 @@ func TestDCat2(t *testing.T) { os.Remove(stdoutFile) } + +func TestDCatColors(t *testing.T) { + testdataFile := "dcatcolors.txt" + stdoutFile := "dcatcolors.out" + expectedFile := "dcatcolors.expected" + + _, err := runCommand(context.TODO(), t, stdoutFile, + "../dcat", "--logLevel", "error", testdataFile) + + if err != nil { + t.Error(err) + return + } + + if err := compareFiles(t, stdoutFile, expectedFile); err != nil { + t.Error(err) + return + } + + os.Remove(stdoutFile) +} -- cgit v1.2.3