...

Package reporter

import "kubevirt.io/client-go/reporter"
Overview
Index

Overview ▾

type JUnitFailureMessage

type JUnitFailureMessage struct {
    Type    string `xml:"type,attr"`
    Message string `xml:",chardata"`
}

type JUnitPassedMessage

type JUnitPassedMessage struct {
    Message string `xml:",chardata"`
}

type JUnitSkipped

type JUnitSkipped struct {
    XMLName xml.Name `xml:"skipped"`
}

type JUnitTestCase

type JUnitTestCase struct {
    Name           string               `xml:"name,attr"`
    ClassName      string               `xml:"classname,attr"`
    PassedMessage  *JUnitPassedMessage  `xml:"passed,omitempty"`
    FailureMessage *JUnitFailureMessage `xml:"failure,omitempty"`
    Skipped        *JUnitSkipped        `xml:"skipped,omitempty"`
    Time           float64              `xml:"time,attr"`
    SystemOut      string               `xml:"system-out,omitempty"`
}

type JUnitTestSuite

type JUnitTestSuite struct {
    XMLName   xml.Name        `xml:"testsuite"`
    TestCases []JUnitTestCase `xml:"testcase"`
    Name      string          `xml:"name,attr"`
    Tests     int             `xml:"tests,attr"`
    Failures  int             `xml:"failures,attr"`
    Errors    int             `xml:"errors,attr"`
    Time      float64         `xml:"time,attr"`
}

type V1JUnitReporter

type V1JUnitReporter struct {
    ReporterConfig config.DefaultReporterConfigType
    // contains filtered or unexported fields
}

func NewV1JUnitReporter

func NewV1JUnitReporter(filename string) *V1JUnitReporter

NewV1JUnitReporter creates a new V1 JUnit XML reporter. The XML will be stored in the passed in filename.

func (*V1JUnitReporter) AfterSuiteDidRun

func (reporter *V1JUnitReporter) AfterSuiteDidRun(setupSummary *types.SetupSummary)

func (*V1JUnitReporter) BeforeSuiteDidRun

func (reporter *V1JUnitReporter) BeforeSuiteDidRun(setupSummary *types.SetupSummary)

func (*V1JUnitReporter) SpecDidComplete

func (reporter *V1JUnitReporter) SpecDidComplete(specSummary *types.SpecSummary)

func (*V1JUnitReporter) SpecWillRun

func (reporter *V1JUnitReporter) SpecWillRun(specSummary *types.SpecSummary)

func (*V1JUnitReporter) SuiteDidEnd

func (reporter *V1JUnitReporter) SuiteDidEnd(summary *types.SuiteSummary)

func (*V1JUnitReporter) SuiteWillBegin

func (reporter *V1JUnitReporter) SuiteWillBegin(ginkgoConfig config.GinkgoConfigType, summary *types.SuiteSummary)