reporter

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2017 License: GPL-3.0, GPL-3.0 Imports: 15 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 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()

ListenExecutionEvents listens to all execution events for reporting on console

Types

type Reporter

type Reporter interface {
	SpecStart(string)
	SpecEnd(result.Result)
	ScenarioStart(string)
	ScenarioEnd(result.Result)
	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