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
type Statuser ¶
type Statuser interface {
Status(subunit.Event) error
}
Statuser reports the status of a test.
type SubunitV2ParserReporter ¶
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.