junitxml

package
v0.300.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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