From fecd4f8f256312c7302b8c4f932dd8f9b5d2b165 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Senart?= Date: Sun, 8 Sep 2013 03:20:35 +0100 Subject: [PATCH] Add plot:timings CLI test --- main_test.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/main_test.go b/main_test.go index 24ec69a..9cd75a0 100644 --- a/main_test.go +++ b/main_test.go @@ -53,11 +53,13 @@ func TestOutputValidation(t *testing.T) { } func TestReporter(t *testing.T) { - rate, duration, targetsf, ordering, reporter, output := defaultArguments() + rate, duration, targetsf, ordering, _, output := defaultArguments() - err := run(rate, duration, targetsf, ordering, reporter, output) - if err != nil { - t.Errorf("Reporter shouldn't return an error: %s", err) + for _, reporter := range []string{"text", "plot:timings"} { + err := run(rate, duration, targetsf, ordering, reporter, output) + if err != nil { + t.Errorf("Reporter `%s` shouldn't return an error: %s", reporter, err) + } } }