notifier

package
v1.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

type Notifier interface {
	Notify(r *Report)
}

Notifier notifies report.

func Multi

func Multi(notifiers ...Notifier) Notifier

Multi creates a notifier that will forward the calls to the notifiers.

type Report

type Report struct {
	Suite       Suite
	Start       time.Time
	Duration    time.Duration
	TestReports []*TestReport
	NbFailed    int
}

func NewReport

func NewReport(s Suite) *Report

func (*Report) Done

func (r *Report) Done()

func (*Report) NewTestReport

func (r *Report) NewTestReport(t testsuite.Test) *TestReport

type Suite

type Suite interface {
	Name() string
	Type() string
	FailFast() bool
	Tests() []testsuite.Test
}

type TestReport

type TestReport struct {
	Test     testsuite.Test
	Start    time.Time
	Duration time.Duration
	Errs     []error
}

func (*TestReport) Done

func (tr *TestReport) Done()

func (*TestReport) Error

func (tr *TestReport) Error(args ...interface{})

func (*TestReport) Errorf

func (tr *TestReport) Errorf(format string, args ...interface{})

func (*TestReport) Reset

func (tr *TestReport) Reset()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL