Documentation ¶
Index ¶
- Constants
- func AppendTestResults(results *v1alpha1.TestResults, result v1alpha1.TestResults)
- func CleanReports() error
- func GenerateReport(results *v1alpha1.TestResults, output OutputFormat) (string, error)
- func GetSummaryReport(results *v1alpha1.TestResults) string
- func LoadTestResults() (*v1alpha1.TestResults, error)
- func PrintSummaryReport(results *v1alpha1.TestResults)
- func SaveTestResults(test *v1alpha1.Test) error
- type Failure
- type JUnitReport
- type OutputFormat
- type TestCase
- type TestSuite
Constants ¶
View Source
const (
XmlProcessingInstruction = `<?xml version="1.0" encoding="UTF-8"?>`
)
Variables ¶
This section is empty.
Functions ¶
func AppendTestResults ¶
func AppendTestResults(results *v1alpha1.TestResults, result v1alpha1.TestResults)
func CleanReports ¶
func CleanReports() error
func GenerateReport ¶
func GenerateReport(results *v1alpha1.TestResults, output OutputFormat) (string, error)
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.