Documentation ¶
Overview ¶
Package reporter provides test result reporters. It is intended to be used in scenarigo.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*testContext)
Option represents an option for test reporter.
func WithMaxParallel ¶
WithMaxParallel returns an option to set the number of parallel.
func WithVerboseLog ¶
func WithVerboseLog() Option
WithVerboseLog returns an option to enable verbose log.
func WithWriter ¶
WithWriter returns an option to set the writer.
type Reporter ¶
type Reporter interface { Name() string Fail() Failed() bool FailNow() Log(args ...interface{}) Logf(format string, args ...interface{}) Error(args ...interface{}) Errorf(format string, args ...interface{}) Fatal(args ...interface{}) Fatalf(format string, args ...interface{}) Skip(args ...interface{}) Skipf(format string, args ...interface{}) SkipNow() Skipped() bool Parallel() Run(name string, f func(r Reporter)) bool }
A Reporter is something that can be used to report test results.
Click to show internal directories.
Click to hide internal directories.