Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecutionSummary ¶
type ExecutionSummary struct { Total, Failures, Errors, Skipped int Time float64 SystemOut, SystemErr string }
ExecutionSummary keeps overall information about test suite execution
type FailsafeParser ¶
type FailsafeParser struct{}
FailsafeParser provides a mechanism to parse Maven Failsafe summary report
func (*FailsafeParser) Parse ¶
func (p *FailsafeParser) Parse(filepath string) (*TestResults, error)
Parse method does the actual Failsafe XML Report parsing
type GradleParser ¶
type GradleParser struct{}
GradleParser parses Gradle test results into TestResults structure
func (*GradleParser) Parse ¶
func (p *GradleParser) Parse(filepath string) (*TestResults, error)
Parse method does the actual gradle XML Report parsing
type Parser ¶
type Parser interface {
Parse(filepath string) (*TestResults, error)
}
Parser interface provides a way to read report file generated by a test runner
type SurefireParser ¶
type SurefireParser struct{}
SurefireParser parses Maven Surefire test results into TestResults structure
func (*SurefireParser) Parse ¶
func (p *SurefireParser) Parse(filepath string) (*TestResults, error)
Parse method does the actual Surefire XML Report parsing
type TestResult ¶
type TestResult struct { TestCase string Time float64 Kind TestResultKind Message, Type, Details string }
TestResult contains details of single test execution
type TestResultKind ¶
type TestResultKind uint8
TestResultKind represents what is the status of the test execution
const ( PASSED TestResultKind = iota + 1 SKIPPED FAILURE ERROR )
type TestResults ¶
type TestResults struct { Name string Summary ExecutionSummary Results []TestResult }
TestResults contains details of the whole test suite execution including subsequent