Documentation ¶
Index ¶
- Constants
- Variables
- func DryRun() (logDir string)
- func Generate() (desc string)
- func Publish(kubetestResultsPath string, resultSummary Summary)
- func Run(descFile string) (resultsPath string)
- type Cloudprovider
- type JunitXMLResult
- type KubetestArgs
- type NestedJunitXMLResult
- type Summary
- type TestcaseDesc
- type TestcaseResult
- type TestsKind
Constants ¶
View Source
const ( FalsePositivesDescFile = "false_positives.json" SkipDescFile = "skip.json" GeneratedRunDescFile = "generated_tests_to_run.txt" AllTestcasesFile = "all_testcases.txt" Success = "success" Failure = "failure" Wildcard = "*" )
View Source
const ( E2eLogFileNamePattern = "e2e.log$" JunitXmlFileNamePattern = `junit_\d+.xml$` TestSummaryFileName = "test_summary.json" MergedJunitXmlFile = "junit_01.xml" MergedE2eLogFile = "build-log.txt" )
Variables ¶
View Source
var AllTestcasesFilePath = filepath.Join(config.TmpDir, AllTestcasesFile)
View Source
var GeneratedRunDescPath = filepath.Join(config.TmpDir, GeneratedRunDescFile)
View Source
var MergedE2eLogFilePath = filepath.Join(config.ExportPath, MergedE2eLogFile)
Functions ¶
Types ¶
type Cloudprovider ¶
type Cloudprovider string
type JunitXMLResult ¶
type JunitXMLResult struct { XMLName xml.Name `xml:"testsuite"` ExecutedTests int `xml:"tests,attr"` FailedTests int `xml:"failures,attr"` Errors int `xml:"errors,attr"` DurationFloat float32 `xml:"time,attr"` Testcases []TestcaseResult `xml:"testcase"` DurationInt int `xml:"-"` // calculated SuccessfulTests int `xml:"-"` // calculated }
func UnmarshalJunitXMLResult ¶
func UnmarshalJunitXMLResult(junitXmlPath string) (junitXml JunitXMLResult, err error)
func (*JunitXMLResult) CalculateAdditionalFields ¶
func (result *JunitXMLResult) CalculateAdditionalFields()
type KubetestArgs ¶
type NestedJunitXMLResult ¶
type NestedJunitXMLResult struct { XMLName xml.Name `xml:"testsuites"` SingleResult JunitXMLResult `xml:"testsuite"` }
type Summary ¶
type Summary struct { ExecutedTestcases int `json:"executed_testcases"` SuccessfulTestcases int `json:"successful_testcases"` FailedTestcases int `json:"failed_testcases"` FlakedTestcases int `json:"flaked_testcases"` Flaked bool `json:"individual_testcases_flaked"` TestsuiteDuration int `json:"duration"` TestsuiteSuccessful bool `json:"successful"` DescriptionFile string `json:"test_desc_file"` StartTime time.Time `json:"-"` FinishedTime time.Time `json:"-"` ExecutionGroup string `json:"execution_group"` FailedTestcaseNames []string `json:"failed_testcase_names"` }
type TestcaseDesc ¶
type TestcaseDesc struct { Name string `json:"testcase"` ExcludedProviders []string `json:"exclude,omitempty"` OnlyProviders []string `json:"only,omitempty"` Retest []string `json:"retest,omitempty"` TestcaseGroups []string `json:"groups"` Skip string `json:"skip,omitempty"` Focus string `json:"focus,omitempty"` IsSubstring bool `json:"is-substring,omitempty"` }
func UnmarshalDescription ¶
func UnmarshalDescription(descPath string) []TestcaseDesc
type TestcaseResult ¶
type TestcaseResult struct { XMLName xml.Name `xml:"testcase" json:"-"` Name string `xml:"name,attr" json:"name"` Status string `xml:"-" json:"status"` // calculated SkippedRaw *struct{} `xml:"skipped" json:"-"` Skipped bool `xml:"-" json:"-"` // calculated FailureText string `xml:"failure,omitempty" json:"failure.text,omitempty"` SystemOutput string `xml:"system-out,omitempty" json:"system-out,omitempty"` DurationFloat float32 `xml:"time,attr" json:"-"` DurationInt int `xml:"-" json:"duration"` // calculated SigGroup string `xml:"-" json:"sig"` // calculated TestDesc string `xml:"-" json:"test_desc_file"` // calculated ExecutionGroup string `xml:"-" json:"execution_group"` // calculated Successful bool `xml:"-" json:"successful"` // calculated Flaked int `xml:"-" json:"flaked"` // calculated StatusShort string `xml:"-" json:"status_short"` // calculated ContextedName string `xml:"-" json:"contexted_name"` // calculated SuccessRate int `xml:"-" json:"success_rate"` // calculated K8sMajor string `xml:"-" json:"k8s_major"` // calculated }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.