Add plot:timings CLI test

This commit is contained in:
Tomás Senart
2013-09-08 03:20:35 +01:00
parent d104324729
commit fecd4f8f25

View File

@@ -53,11 +53,13 @@ func TestOutputValidation(t *testing.T) {
} }
func TestReporter(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) for _, reporter := range []string{"text", "plot:timings"} {
if err != nil { err := run(rate, duration, targetsf, ordering, reporter, output)
t.Errorf("Reporter shouldn't return an error: %s", err) if err != nil {
t.Errorf("Reporter `%s` shouldn't return an error: %s", reporter, err)
}
} }
} }