xunit

package
v0.77.5 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 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 Error

type Error struct {
	Type  string `xml:"type,attr,omitempty"  yaml:"type"  json:"type" `
	Value string `xml:"cdata,omitempty"  yaml:"value"  json:"value"`
}

Error represents an error xunit node

type Nodes

type Nodes struct {
	Expected string   `xml:"expected,attr,omitempty"  yaml:"expected,omitempty"  json:"expected,omitempty" `
	Result   string   `xml:"result,attr,omitempty"  yaml:"result,omitempty"  json:"result,omitempty"  `
	Nodes    []*Nodes `xml:"nodes,omitempty"  yaml:"nodes,omitempty"  json:"nodes,omitempty" `
	Error    *Error   `xml:"error,omitempty"  yaml:"error,omitempty"  json:"error,omitempty" `
}

Nodes represents an error xunit nodes

func NewNodes

func NewNodes() *Nodes

NewNodes creates a new nodes

type TestCase

type TestCase struct {
	Name string `xml:"name,attr,omitempty" yaml:"name,omitempty"  json:"name,omitempty"`

	Label string `xml:"label,attr,omitempty" yaml:"label,omitempty"  json:"label,omitempty"`
	Skip  string `xml:"skip,attr,omitempty"  yaml:"skip,omitempty"  json:"skip,omitempty"`

	Tests string `xml:"tests,attr,omitempty"  yaml:"tests,omitempty"  json:"tests,omitempty"`

	Failures       string `xml:"failures,attr,omitempty" yaml:"failures,omitempty"  json:"failures,omitempty" `
	FailuresDetail string `xml:"failures-detail,attr,omitempty"  yaml:"failures-detail,omitempty"  json:"failures-detail,omitempty"`
	Errors         string `xml:"errors,attr,omitempty"  yaml:"errors,omitempty"  json:"errors,omitempty"`
	ErrorsDetail   string `xml:"errors-detail,attr,omitempty"  yaml:"errors-detail,omitempty"  json:"errors-detail,omitempty"`
	TestCases      string `xml:"test-cases,attr,omitempty"  yaml:"test-cases,omitempty"  json:"test-cases,omitempty"`
	Reports        string `xml:"reports,attr,omitempty"  yaml:"reports,omitempty"  json:"reports,omitempty"`
	Time           string `xml:"time,attr,omitempty"  yaml:"time,omitempty"  json:"time,omitempty"`
	Nodes          *Nodes `xml:"nodes,omitempty"  yaml:"nodes,omitempty"  json:"nodes,omitempty"`
	Sysout         string `xml:"sysout,omitempty"  yaml:"sysout,omitempty"  json:"sysout,omitempty"`
	Syserr         string `xml:"syserr,omitempty"  yaml:"syserr,omitempty"  json:"syserr,omitempty"`
}

TestCase represents an error test-case nodes

func NewTestCase

func NewTestCase() *TestCase

NewTestCase creates a new test case

type Testsuite

type Testsuite struct {
	Name string `xml:"name,attr,omitempty" yaml:"name,omitempty"  json:"name,omitempty" `

	Errors       string `xml:"errors,attr,omitempty" yaml:"errors,omitempty"  json:"errors,omitempty" `
	ErrorsDetail string `xml:"errors-detail,attr,omitempty" yaml:"errors-detail,omitempty"  json:"errors-detail,omitempty" `

	Failures       string `xml:"failures,attr,omitempty" yaml:"failures,omitempty"  json:"failures,omitempty" `
	FailuresDetail string `xml:"failures-detail,attr,omitempty" yaml:"failures-detail,omitempty"  json:"failures-detail,omitempty" `

	Tests     string `xml:"tests,attr" yaml:"tests,omitempty"  json:"tests,omitempty" `
	TestCases string `xml:"test-cases,attr,omitempty" yaml:"test-cases,omitempty"  json:"test-cases,omitempty" `
	Reports   string `xml:"reports,attr" yaml:"reports,omitempty"  json:"reports,omitempty" `

	Time     string      `xml:"time,attr,omitempty" yaml:"time,omitempty"  json:"time,omitempty" `
	TestCase []*TestCase `xml:"testcase" yaml:"test-case,omitempty"  json:"test-case,omitempty" `
}

Testsuite represents an error test-suite nodes

func NewTestsuite

func NewTestsuite() *Testsuite

Jump to

Keyboard shortcuts

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