spec

package
v0.0.0-...-d0259e8 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2020 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseFile

func ParseFile(file string) ([]reporters.JUnitTestSuite, error)

func UnmarshalMultipleTestSuites

func UnmarshalMultipleTestSuites(xmlBytes []byte) ([]reporters.JUnitTestSuite, error)

func UnmarshalSingleTestSuite

func UnmarshalSingleTestSuite(xmlBytes []byte) (reporters.JUnitTestSuite, error)

Types

type JUnitTestSuites

type JUnitTestSuites struct {
	XMLName xml.Name                   `xml:"testsuites"`
	Suites  []reporters.JUnitTestSuite `xml:"testsuite"`
}

type TestStatus

type TestStatus int
const (
	Passed TestStatus = iota
	Failed
	Skipped
)

type Update

type Update struct {
	Status  TestStatus
	Message string
	Elapsed time.Duration
}

type Updates

type Updates struct {
	ResultMap map[int]Update
}

func (*Updates) AddSuites

func (u *Updates) AddSuites(comment string, suites JUnitTestSuites) error

func (*Updates) CreatePayload

func (u *Updates) CreatePayload() (testrail.SendableResultsForCase, error)

func (*Updates) RemoveResult

func (u *Updates) RemoveResult(i int)

Jump to

Keyboard shortcuts

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