output

package
v0.0.0-...-eea24ac Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2017 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compact

type Compact struct {
	// contains filtered or unexported fields
}

Compact is a simple Reporter that prints the test output to stdout with lots of dots (".').

func (*Compact) End

func (compact *Compact) End() error

func (*Compact) Next

func (compact *Compact) Next(test execute.TestResponse)

func (*Compact) Start

func (compact *Compact) Start(plan *plan.Plan) error

type JSON

type JSON struct {
	// contains filtered or unexported fields
}

func (*JSON) End

func (j *JSON) End() error

func (*JSON) Next

func (j *JSON) Next(test execute.TestResponse)

func (*JSON) Start

func (j *JSON) Start(plan *plan.Plan) error

type JSONBehaviorReport

type JSONBehaviorReport struct {
	Params []string         `json:"params"`
	Tests  []JSONTestReport `json:"tests"`
}

type JSONReport

type JSONReport struct {
	Behaviors map[string]*JSONBehaviorReport `json:"behaviors"`
}

type JSONTestReport

type JSONTestReport struct {
	Client    string              `json:"client"`
	Arguments plan.TestClientArgs `json:"arguments"`
	Status    execute.Status      `json:"status"`
	Output    string              `json:"output"`
}

type List

type List struct{}

List is a simple Reporter that prints the test output to stdout.

func (*List) End

func (list *List) End() error

func (*List) Next

func (list *List) Next(test execute.TestResponse)

func (*List) Start

func (list *List) Start(plan *plan.Plan) error

type Mux

type Mux []Reporter

Mux multiplexes to multiples reporters.

func (Mux) End

func (r Mux) End() error

func (Mux) Next

func (r Mux) Next(response execute.TestResponse)

func (Mux) Start

func (r Mux) Start(plan *plan.Plan) error

type Reporter

type Reporter interface {
	Start(plan *plan.Plan) error
	Next(response execute.TestResponse)
	End() error
}

Reporter is responsible for outputting test results

func GetReporter

func GetReporter(names []string) (Reporter, error)

GetReporter returns a ReporterFunc for the given name

type Summary

type Summary struct {
	Failed bool

	NumSuccess int
	NumFail    int
	NumSkipped int
}

Summary contains an account of the test run

func (*Summary) End

func (s *Summary) End() error

func (*Summary) Next

func (s *Summary) Next(test execute.TestResponse)

func (*Summary) Start

func (s *Summary) Start(plan *plan.Plan) error

Jump to

Keyboard shortcuts

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