reporter

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2019 License: GPL-3.0, GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IsParallel bool

IsParallel represents console reporting format based on simple/parallel execution

View Source
var MachineReadable bool

MachineReadable represents if output should be in JSON format.

View Source
var NumberOfExecutionStreams int

NumberOfExecutionStreams indicates the total number of parallel execution streams

View Source
var SimpleConsoleOutput bool

SimpleConsoleOutput represents if coloring should be removed from the Console output

View Source
var Verbose bool

Verbose represents level of console Reporting. If true its at step level, else at scenario level.

Functions

func ListenExecutionEvents added in v0.5.0

func ListenExecutionEvents(wg *sync.WaitGroup)

ListenExecutionEvents listens to all execution events for reporting on console

Types

type Reporter

type Reporter interface {
	SuiteStart()
	SpecStart(*gauge.Specification, result.Result)
	SpecEnd(*gauge.Specification, result.Result)
	ScenarioStart(*gauge.Scenario, gauge_messages.ExecutionInfo, result.Result)
	ScenarioEnd(*gauge.Scenario, result.Result, gauge_messages.ExecutionInfo)
	StepStart(string)
	StepEnd(gauge.Step, result.Result, gauge_messages.ExecutionInfo)
	ConceptStart(string)
	ConceptEnd(result.Result)
	DataTable(string)
	SuiteEnd(result.Result)

	Errorf(string, ...interface{})

	io.Writer
}

Reporter reports the progress of spec execution. It reports 1. Which spec / scenarion / step (if verbose) is currently executing. 2. Status (pass/fail) of the spec / scenario / step (if verbose) once its executed.

func Current

func Current() Reporter

Current returns the current instance of Reporter, if present. Else, it returns a new Reporter.

func ParallelReporter added in v0.5.0

func ParallelReporter(n int) Reporter

ParallelReporter returns the instance of parallel console reporter

Jump to

Keyboard shortcuts

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