report

package
v0.0.0-...-41dd8df Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2016 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileReporter

type FileReporter struct{}

FileReporter is a type implementing io.Writer that writes the data passed to its Writer method in a file

func (*FileReporter) Write

func (fr *FileReporter) Write(data []byte) (n int, err error)

type Statuser

type Statuser interface {
	Status(subunit.Event) error
}

Statuser reports the status of a test.

type SubunitV2ParserReporter

type SubunitV2ParserReporter struct {
	Next io.Writer
	// contains filtered or unexported fields
}

SubunitV2ParserReporter is a type that parses the input data and sends the results as a test status.

The input data is expected to be of the form of the textual output of gocheck with verbose mode enabled, and the output will be of the form defined by the subunit v2 format. There are constants reflecting the expected patterns for this texts. Additionally, it doesn't take into account the SKIPs done from a SetUpTest method, due to the nature of the snappy test suite we are using those for resuming execution after a reboot and they shouldn't be reflected as skipped tests in the final output. For the same reason we use a special marker for the test's announce.

func NewSubunitV2ParserReporter

func NewSubunitV2ParserReporter(writer io.Writer) *SubunitV2ParserReporter

NewSubunitV2ParserReporter returns a new ParserReporter that sends the report to the writer argument.

func (*SubunitV2ParserReporter) Write

func (fr *SubunitV2ParserReporter) Write(data []byte) (int, error)

Jump to

Keyboard shortcuts

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