Documentation
¶
Index ¶
- func FormatOptions() []string
- func IsValidFormat(f string) bool
- func IsValidFormatOption(o string) bool
- func Outputers() []string
- func RegisterOutputer(name string, outputer Outputer, formatOptions []string)
- type Documentation
- type JUnit
- type Json
- type JsonOneline
- type Nagios
- type Outputer
- type Rspecish
- type Silent
- type StructureTestSummary
- type Structured
- type StructuredOutput
- type StructuredTestResult
- type Tap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatOptions ¶ added in v0.3.6
func FormatOptions() []string
FormatOptions are all the valid options formatters accept
func IsValidFormat ¶ added in v0.3.11
IsValidFormat determines if f is a valid format name based on Outputers()
func IsValidFormatOption ¶ added in v0.3.11
IsValidFormatOption determines if o is a valid format option based on FormatOptions()
func Outputers ¶ added in v0.0.5
func Outputers() []string
Outputers returns a sorted list of the names of the registered outputers.
func RegisterOutputer ¶ added in v0.0.5
Types ¶
type Documentation ¶ added in v0.0.5
type Documentation struct{}
func (Documentation) Output ¶ added in v0.0.5
func (r Documentation) Output(w io.Writer, results <-chan []resource.TestResult, startTime time.Time, outConfig util.OutputConfig) (exitCode int)
type JsonOneline ¶ added in v0.3.4
type JsonOneline struct{}
func (JsonOneline) Output ¶ added in v0.3.4
func (r JsonOneline) Output(w io.Writer, results <-chan []resource.TestResult, startTime time.Time, outConfig util.OutputConfig) (exitCode int)
type Outputer ¶
type Outputer interface {
Output(io.Writer, <-chan []resource.TestResult, time.Time, util.OutputConfig) int
}
func GetOutputer ¶ added in v0.0.5
type StructureTestSummary ¶ added in v0.3.11
type StructureTestSummary struct { TestCount int `json:"test-count"` Failed int `json:"failed-count"` TotalDuration time.Duration `json:"total-duration"` }
StructureTestSummary holds summary information about a test run
func (*StructureTestSummary) String ¶ added in v0.3.11
func (s *StructureTestSummary) String() string
String represents human friendly representation of the test summary
type Structured ¶ added in v0.3.11
type Structured struct{}
Structured is a output formatter that logs into a StructuredOutput structure
func (Structured) Output ¶ added in v0.3.11
func (r Structured) Output(w io.Writer, results <-chan []resource.TestResult, startTime time.Time, outConfig util.OutputConfig) (exitCode int)
Output processes output from tests into StructuredOutput written to w as a string
type StructuredOutput ¶ added in v0.3.11
type StructuredOutput struct { Results []StructuredTestResult `json:"results"` Summary StructureTestSummary `json:"summary"` SummaryLine string `json:"summary-line"` }
StructuredOutput is the full output structure for the structured output format
type StructuredTestResult ¶ added in v0.3.11
type StructuredTestResult struct { resource.TestResult SummaryLine string `json:"summary-line"` }
StructuredTestResult is an individual test result with additional human friendly summary