reporters

package
v0.0.0-...-70745a7 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONReporter

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

func NewJSONReporter

func NewJSONReporter(filename string) *JSONReporter

func (*JSONReporter) AfterSuiteDidRun

func (r *JSONReporter) AfterSuiteDidRun(setupSummary *types.SetupSummary)

func (*JSONReporter) BeforeSuiteDidRun

func (r *JSONReporter) BeforeSuiteDidRun(setupSummary *types.SetupSummary)

func (*JSONReporter) SpecDidComplete

func (r *JSONReporter) SpecDidComplete(specSummary *types.SpecSummary)

func (*JSONReporter) SpecSuiteDidEnd

func (r *JSONReporter) SpecSuiteDidEnd(summary *types.SuiteSummary)

func (*JSONReporter) SpecSuiteWillBegin

func (r *JSONReporter) SpecSuiteWillBegin(config config.GinkgoConfigType, summary *types.SuiteSummary)

func (*JSONReporter) SpecWillRun

func (r *JSONReporter) SpecWillRun(specSummary *types.SpecSummary)

type JSONTestCase

type JSONTestCase struct {
	Name              string     `json:"name"`
	Message           string     `json:"message,omitempty"`
	Result            SpecResult `json:"result"`
	Time              float64    `json:"time"`
	SystemOut         string     `json:"systemOut,omitempty"`
	Location          string     `json:"location,omitempty"`
	ComponentLocation string     `json:"componentLocation,omitempty"`
}

type JSONTestSuite

type JSONTestSuite struct {
	Name     string         `json:"name"`
	Specs    []JSONTestCase `json:"specs"`
	Total    int            `json:"total"`
	Running  int            `json:"running"`
	Failures int            `json:"failures"`
	Skipped  int            `json:"skipped"`
	Pending  int            `json:"pending"`
	Time     float64        `json:"time"`
}

type SpecResult

type SpecResult string
const (
	SpecResultFailed   SpecResult = "failed"
	SpecResultPassed   SpecResult = "passed"
	SpecResultSkipped  SpecResult = "skipped"
	SpecResultPending  SpecResult = "pending"
	SpecResultTimeout  SpecResult = "timeout"
	SpecResultPanicked SpecResult = "panicked"
	SpecResultInvalid  SpecResult = "invalid"
)

Jump to

Keyboard shortcuts

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