xunitapi

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestCase

type TestCase struct {
	// Name is the name of the test
	Name      string                `xml:"name,attr,omitempty"`
	Time      string                `xml:"time,attr,omitempty"`
	Classname string                `xml:"classname,attr,omitempty"`
	Group     string                `xml:"group,attr,omitempty"`
	Failures  []XUnitComplexFailure `xml:"failure,omitempty"`
	Errors    []XUnitComplexError   `xml:"error,omitempty"`
	Skipped   []XUnitComplexSkipped `xml:"skipped,omitempty"`
}

TestCase contain the core information from a test run, including its name and status

type TestSuite

type TestSuite struct {
	// Name is the name of the test
	Name       string      `xml:"name,attr,omitempty"`
	Tests      string      `xml:"tests,attr,omitempty"`
	Failures   string      `xml:"failures,attr,omitempty"`
	Errors     string      `xml:"errors,attr,omitempty"`
	Group      string      `xml:"group,attr,omitempty"`
	Skipped    string      `xml:"skipped,attr,omitempty"`
	Timestamp  string      `xml:"timestamp,attr,omitempty"`
	Hostname   string      `xml:"hostnames,attr,omitempty"`
	ID         string      `xml:"id,attr,omitempty"`
	Package    string      `xml:"package,attr,omitempty"`
	File       string      `xml:"file,attr,omitempty"`
	Log        string      `xml:"log,attr,omitempty"`
	URL        string      `xml:"url,attr,omitempty"`
	Version    string      `xml:"version,attr,omitempty"`
	TestSuites []TestSuite `xml:"testsuite,omitempty"`
	TestCases  []TestCase  `xml:"testcase,omitempty"`
}

TestSuite contains for details about a test beyond the final status

type TestSuites

type TestSuites struct {
	// Name is the name of the test
	Name      string      `xml:"name,attr,omitempty"`
	Tests     string      `xml:"tests,attr,omitempty"`
	Failures  string      `xml:"failures,attr,omitempty"`
	Errors    string      `xml:"errors,attr,omitempty"`
	TestSuite []TestSuite `xml:"testsuite,omitempty"`
}

TestSuites is the top level object for amassing Xunit test results

type XUnitComplexError

type XUnitComplexError struct {
	Type    string `xml:"type,attr,omitempty"`
	Message string `xml:"message,attr,omitempty"`
}

XUnitComplexError contains a type header along with the error messages

type XUnitComplexFailure

type XUnitComplexFailure struct {
	Type    string `xml:"type,attr,omitempty"`
	Message string `xml:"message,attr,omitempty"`
}

XUnitComplexFailure contains a type header along with the failure logs

type XUnitComplexSkipped

type XUnitComplexSkipped struct {
	Type    string `xml:"type,attr,omitempty"`
	Message string `xml:"message,attr,omitempty"`
}

XUnitComplexSkipped contains a type header along with associated run logs

Jump to

Keyboard shortcuts

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