Documentation ¶
Index ¶
- Constants
- func AppendSummary(overall *v1alpha1.TestSummary, summary *v1alpha1.TestSummary)
- func AppendTestResults(suites *v1alpha1.TestSuite, suite v1alpha1.TestSuite)
- func CleanReports() error
- func GenerateReport(out io.Writer, errorOut io.Writer, results *v1alpha1.TestResults, ...)
- func GetErrorResult(namespace string, source string, err error) *v1alpha1.Test
- func GetErrorType(err error) string
- func GetSummaryReport(results *v1alpha1.TestResults) string
- func LoadTestResults() (*v1alpha1.TestResults, error)
- func PrintSummaryReport(results *v1alpha1.TestResults)
- func SaveTestResults(test *v1alpha1.Test) error
- type Error
- type Failure
- type JUnitReport
- type OutputFormat
- type TestCase
- type TestSuite
Constants ¶
View Source
const ( JUnitReportFile = "junit-reports.xml" XMLProcessingInstruction = `<?xml version="1.0" encoding="UTF-8"?>` )
View Source
const (
JSONReportFile = "test-reports.json"
)
Variables ¶
This section is empty.
Functions ¶
func AppendSummary ¶ added in v0.3.0
func AppendSummary(overall *v1alpha1.TestSummary, summary *v1alpha1.TestSummary)
func AppendTestResults ¶
func CleanReports ¶
func CleanReports() error
func GenerateReport ¶
func GenerateReport(out io.Writer, errorOut io.Writer, results *v1alpha1.TestResults, output OutputFormat)
func GetErrorResult ¶ added in v0.3.0
func GetErrorType ¶ added in v0.3.0
func GetSummaryReport ¶
func GetSummaryReport(results *v1alpha1.TestResults) string
func LoadTestResults ¶
func LoadTestResults() (*v1alpha1.TestResults, error)
func PrintSummaryReport ¶
func PrintSummaryReport(results *v1alpha1.TestResults)
func SaveTestResults ¶
Types ¶
type JUnitReport ¶
type JUnitReport struct {
Suite []TestSuite `xml:"testsuite"`
}
type OutputFormat ¶
type OutputFormat string
const ( OutputDir = "_output" DefaultOutput OutputFormat = "" JSONOutput OutputFormat = "json" JUnitOutput OutputFormat = "junit" SummaryOutput OutputFormat = "summary" )
func (*OutputFormat) Set ¶
func (d *OutputFormat) Set(s string) error
Set implements pflag/flag.Value.
func (*OutputFormat) String ¶
func (d *OutputFormat) String() string
Type implements pflag/flag.Value.
Click to show internal directories.
Click to hide internal directories.