Add plot:timings CLI test
This commit is contained in:
10
main_test.go
10
main_test.go
@@ -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)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user