output

package
v0.0.0-...-393566b Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2025 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	XMLName xml.Name `xml:"error,omitempty"`
	Message string   `xml:"message,attr,omitempty"`
	Value   string   `xml:",chardata"`
}

Error ...

type Exporter

type Exporter interface {
	ExportTestResultsDir(dir string) error
	ExportFlakyTestsEnvVar(mergedTestResultXmlPths []string) error
}

func NewExporter

func NewExporter(outputExporter OutputExporter, logger log.Logger) Exporter

type Failure

type Failure struct {
	XMLName xml.Name `xml:"failure,omitempty"`
	Message string   `xml:"message,attr,omitempty"`
	Value   string   `xml:",chardata"`
}

Failure ...

type OutputExporter

type OutputExporter interface {
	ExportOutput(key, value string) error
}

func NewOutputExporter

func NewOutputExporter() OutputExporter

type Skipped

type Skipped struct {
	XMLName xml.Name `xml:"skipped,omitempty"`
}

Skipped ...

type TestCase

type TestCase struct {
	XMLName   xml.Name `xml:"testcase"`
	Name      string   `xml:"name,attr"`
	ClassName string   `xml:"classname,attr"`
	Time      float64  `xml:"time,attr"`
	Flaky     string   `xml:"flaky,attr"`

	Failure *Failure `xml:"failure,omitempty"`
	Skipped *Skipped `xml:"skipped,omitempty"`
	Error   *Error   `xml:"error,omitempty"`
}

TestCase ...

type TestSuite

type TestSuite struct {
	XMLName   xml.Name   `xml:"testsuite"`
	Name      string     `xml:"name,attr"`
	Tests     int        `xml:"tests,attr"`
	Failures  int        `xml:"failures,attr"`
	Flakes    int        `xml:"flakes,attr"`
	Errors    int        `xml:"errors,attr"`
	Skipped   int        `xml:"skipped,attr"`
	Time      float64    `xml:"time,attr"`
	TestCases []TestCase `xml:"testcase"`
}

TestSuite ...

Jump to

Keyboard shortcuts

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