reporter

package
v0.0.0-...-43cc4f4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL