summaryrefslogtreecommitdiff
path: root/integrationtests/dcat_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrationtests/dcat_test.go')
-rw-r--r--integrationtests/dcat_test.go21
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)
+}