Help us shape the future of Go! Take the 2026 Go Developer Survey

junitxml

package
v0.315.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JUnitXML

type JUnitXML struct {
	XMLName xml.Name     `xml:"testsuites"`
	Suites  []*TestSuite `xml:"testsuite"`
}

func (*JUnitXML) Suite

func (j *JUnitXML) Suite(name string) *TestSuite

func (*JUnitXML) WriteXML

func (j *JUnitXML) WriteXML(h io.Writer) error

type TestCase

type TestCase struct {
	Name     string   `xml:"name,attr"`
	Failures []string `xml:"failure,omitempty"`
	Error    string   `xml:"error,omitempty"`
}

type TestSuite

type TestSuite struct {
	Name         string      `xml:"name,attr"`
	TestCount    int         `xml:"tests,attr"`
	FailureCount int         `xml:"failures,attr"`
	ErrorCount   int         `xml:"errors,attr"`
	SkippedCount int         `xml:"skipped,attr"`
	Timestamp    string      `xml:"timestamp,attr"`
	Cases        []*TestCase `xml:"testcase"`
}

func (*TestSuite) Abort

func (ts *TestSuite) Abort(e error)

func (*TestSuite) Case

func (ts *TestSuite) Case(name string) *TestSuite

func (*TestSuite) Fail

func (ts *TestSuite) Fail(f string)

func (*TestSuite) Settime

func (ts *TestSuite) Settime(name string)

Jump to

Keyboard shortcuts

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