Documentation
¶
Overview ¶
Package parser defines the Parser interface and the global registry used for format auto-detection and dispatch.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Parser ¶
type Parser interface {
// Name is the canonical format identifier, lowercase, no spaces.
Name() string
// Extensions lists file extensions (without leading dot) this parser handles.
Extensions() []string
// Detect returns true if the given header bytes look like this format.
// header is at most 512 bytes from the beginning of the file.
Detect(header []byte) bool
// Parse reads r to completion and returns a normalised Report.
Parse(r io.Reader, source string) (*model.Report, error)
}
Parser converts a specific test result format into a model.Report.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package cucumber parses Cucumber JSON test result files.
|
Package cucumber parses Cucumber JSON test result files. |
|
Package gotest parses the streaming JSON output produced by `go test -json`.
|
Package gotest parses the streaming JSON output produced by `go test -json`. |
|
Package junit implements a streaming JUnit XML parser that also handles Google Test XML output (a compatible superset with optional file/line attrs).
|
Package junit implements a streaming JUnit XML parser that also handles Google Test XML output (a compatible superset with optional file/line attrs). |
|
Package nunit parses NUnit 2/3 and xUnit .NET XML test result files.
|
Package nunit parses NUnit 2/3 and xUnit .NET XML test result files. |
|
Package tap parses TAP (Test Anything Protocol) streams, versions 12 and 13.
|
Package tap parses TAP (Test Anything Protocol) streams, versions 12 and 13. |
Click to show internal directories.
Click to hide internal directories.