Documentation ¶
Overview ¶
Package testparser parses test stdout into structured results.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestCaseResult ¶
type TestCaseResult struct { DisplayName string `json:"display_name"` SuiteName string `json:"suite_name"` CaseName string `json:"case_name"` Status TestCaseStatus `json:"status"` Duration time.Duration `json:"duration_nanos"` Format string `json:"format"` }
func Parse ¶
func Parse(stdout []byte) []TestCaseResult
Parse takes stdout from a test program and returns structured results. Internally, a variety of test program stdout formats are supported. If no structured results were identified, an empty slice is returned.
type TestCaseStatus ¶
type TestCaseStatus string
const ( Pass TestCaseStatus = "Pass" Fail TestCaseStatus = "Fail" Skip TestCaseStatus = "Skip" )
Source Files ¶
Click to show internal directories.
Click to hide internal directories.