junitxml

package
v0.0.0-...-9740741 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2025 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Converter

type Converter struct {
	// contains filtered or unexported fields
}

Converter holds data of the converter

func (*Converter) Convert

func (c *Converter) Convert() (testreport.TestReport, error)

func (*Converter) Detect

func (c *Converter) Detect(files []string) bool

func (*Converter) Setup

func (c *Converter) Setup(_ bool)

type Error

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

Error ...

type Failure

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

Failure ...

type FlakyError

type FlakyError struct {
	XMLName   xml.Name `xml:"flakyError"`
	Message   string   `xml:"message,attr"`
	Type      string   `xml:"type,attr"`
	SystemErr string   `xml:"system-err,omitempty"`
	SystemOut string   `xml:"system-out,omitempty"`
}

type FlakyFailure

type FlakyFailure struct {
	XMLName   xml.Name `xml:"flakyFailure"`
	Message   string   `xml:"message,attr"`
	Type      string   `xml:"type,attr"`
	SystemErr string   `xml:"system-err,omitempty"`
	SystemOut string   `xml:"system-out,omitempty"`
}

type Properties

type Properties struct {
	XMLName  xml.Name   `xml:"properties"`
	Property []Property `xml:"property"`
}

type Property

type Property struct {
	XMLName xml.Name `xml:"property"`
	Name    string   `xml:"name,attr"`
	Value   string   `xml:"value,attr"`
}

type RerunError

type RerunError struct {
	XMLName   xml.Name `xml:"rerunError"`
	Message   string   `xml:"message,attr"`
	Type      string   `xml:"type,attr"`
	SystemErr string   `xml:"system-err,omitempty"`
	SystemOut string   `xml:"system-out,omitempty"`
}

type RerunFailure

type RerunFailure struct {
	XMLName   xml.Name `xml:"rerunFailure"`
	Message   string   `xml:"message,attr"`
	Type      string   `xml:"type,attr"`
	SystemErr string   `xml:"system-err,omitempty"`
	SystemOut string   `xml:"system-out,omitempty"`
}

type Skipped

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

Skipped ...

type TestCase

type TestCase struct {
	XMLName           xml.Name    `xml:"testcase"`
	ConfigurationHash string      `xml:"configuration-hash,attr"`
	Name              string      `xml:"name,attr"`
	ClassName         string      `xml:"classname,attr"`
	Time              float64     `xml:"time,attr"`
	Failure           *Failure    `xml:"failure,omitempty"`
	Properties        *Properties `xml:"properties,omitempty"`
	Skipped           *Skipped    `xml:"skipped,omitempty"`
	Error             *Error      `xml:"error,omitempty"`
	SystemErr         string      `xml:"system-err,omitempty"`
	SystemOut         string      `xml:"system-out,omitempty"`

	FlakyFailures []FlakyFailure `xml:"flakyFailure,omitempty"`
	FlakyErrors   []FlakyError   `xml:"flakyError,omitempty"`
	RerunFailures []RerunFailure `xml:"rerunFailure,omitempty"`
	RerunErrors   []RerunError   `xml:"rerunError,omitempty"`
}

TestCase ...

type TestReport

type TestReport struct {
	XMLName    xml.Name    `xml:"testsuites"`
	TestSuites []TestSuite `xml:"testsuite"`
}

TestReport ...

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"`
	Skipped   int        `xml:"skipped,attr"`
	Errors    int        `xml:"errors,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