diff options
| author | Paul Buetow <paul@buetow.org> | 2021-10-15 09:04:40 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2021-10-15 09:04:40 +0300 |
| commit | c0332e8fa13f4939de17c856b2e71fd093847253 (patch) | |
| tree | dbeb9c7f5f6ea99f0bb2afa806403f6a375c0db0 /integrationtests/dcat_test.go | |
| parent | 698fb76b98c46c677abe13fdc93afc6c4f38c39e (diff) | |
add dcat color output test
Diffstat (limited to 'integrationtests/dcat_test.go')
| -rw-r--r-- | integrationtests/dcat_test.go | 21 |
1 files changed, 21 insertions, 0 deletions
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) +} |
