junit

package
v0.0.0-...-97238d6 Latest Latest
Warning

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

Go to latest
Published: May 29, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProfileToTestsuiteXML

func ProfileToTestsuiteXML(profiles []*cover.Profile, coverageThreshold float32) ([]byte, error)

ProfileToTestsuiteXML uses coverage profile to produce junit xml which serves as the input for test coverage testgrid

Types

type Properties

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

Properties defines the xml element that stores the a list of properties that associated with one testcase

type Property

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

Property defines the xml element that stores the value of code coverage

type TestCase

type TestCase struct {
	ClassName    string     `xml:"class_name,attr"`
	Name         string     `xml:"name,attr"`
	Time         string     `xml:"time,attr"`
	Failure      bool       `xml:"failure,omitempty"`
	PropertyList Properties `xml:"properties"`
}

TestCase defines the xml element that stores all information associated with one test case

type Testsuite

type Testsuite struct {
	XMLName   string     `xml:"testsuite"`
	Testcases []TestCase `xml:"testcase"`
}

Testsuite defines the outer-most xml element that contains all test cases

Directories

Path Synopsis
Package calculation calculates coverage through summarizing and filtering.
Package calculation calculates coverage through summarizing and filtering.

Jump to

Keyboard shortcuts

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