reportxml

package
v0.0.0-...-73f0a56 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(report ginkgo.Report, destFile, projectTag string)

Create writes report to a given xml file.

func ID

func ID(tag string) ginkgo.Labels

ID sets test id for a test case.

func SetProperty

func SetProperty(propertyKey, propertyValue string) ginkgo.Labels

SetProperty sets test id for a test case.

Types

type FailureMessage

type FailureMessage struct {
	Type    string `xml:"type,attr"`
	Message string `xml:",chardata"`
}

FailureMessage represents fail message.

type Properties

type Properties struct {
	Property []Property `xml:"property"`
}

Properties structure represents test case properties.

type Property

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

Property represents test case property.

type Skipped

type Skipped struct {
	XMLName xml.Name `xml:"skipped"`
	Message string   `xml:"message,attr,omitempty"`
}

Skipped represents skip message.

type TestCase

type TestCase struct {
	Name           string          `xml:"name,attr"`
	Properties     Properties      `xml:"properties"`
	FailureMessage *FailureMessage `xml:"failure,omitempty"`
	Skipped        *Skipped        `xml:"skipped,omitempty"`
	SystemOut      string          `xml:"system-out,omitempty"`
}

TestCase represents formatted test case.

type TestSuite

type TestSuite struct {
	XMLName    xml.Name   `xml:"testsuite"`
	Name       string     `xml:"name,attr"`
	Tests      int        `xml:"tests,attr"`
	Skipped    int        `xml:"skipped,attr"`
	Failures   int        `xml:"failures,attr"`
	Time       float64    `xml:"time,attr"`
	Properties Properties `xml:"properties"`
	TestCases  []TestCase `xml:"testcase"`
}

TestSuite represents formatted test suite.

Jump to

Keyboard shortcuts

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