Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewIndentingWriter ¶
Types ¶
type PrettyReporter ¶
PrettyReporter reports test results in a simple human readable format.
func (PrettyReporter) Report ¶
func (r PrettyReporter) Report(result *TestResult) error
Report prints the test report to the reporter's output.
type Reporter ¶
type Reporter interface { // Report is called with a channel that will contain test results. Report(result *TestResult) error }
Reporter defines the interface for reporting test results.
func DefaultReporter ¶
type TestCaseInfo ¶
func (*TestCaseInfo) Fail ¶
func (t *TestCaseInfo) Fail() bool
func (*TestCaseInfo) Format ¶
func (t *TestCaseInfo) Format() string
func (*TestCaseInfo) Pass ¶
func (t *TestCaseInfo) Pass() bool
func (*TestCaseInfo) StatusString ¶
func (t *TestCaseInfo) StatusString() string
type TestOptions ¶
type TestResult ¶
type TestResult struct {
Info []TestCaseInfo
}
func Test ¶
func Test(testOpts *TestOptions, opts ...kcl.Option) (TestResult, error)
Click to show internal directories.
Click to hide internal directories.