pytest

package
v0.0.0-...-a3f91db Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Test

type Test string

type TestCase

type TestCase struct {
	XMLName   xml.Name      `xml:"testcase"`
	ClassName string        `xml:"classname,attr"`
	Name      string        `xml:"name,attr"`
	Time      float64       `xml:"time,attr"`
	Failures  []TestFailure `xml:"failure"`
	Errors    []TestError   `xml:"error"`
}

func CalculateTestCasesFromPath

func CalculateTestCasesFromPath(g git.Git, c cache.Cacher, path string) []TestCase

func (*TestCase) Path

func (t *TestCase) Path(root string) string

type TestError

type TestError struct {
	XMLName xml.Name `xml:"error"`
	Message string   `xml:"message,attr"`
}

type TestFailure

type TestFailure struct {
	XMLName   xml.Name `xml:"failure"`
	Message   string   `xml:"message,attr"`
	SystemOut string   `xml:"system-out,attr"`
	SystemErr string   `xml:"system-err,attr"`
}

type TestResult

type TestResult struct {
	XMLName    xml.Name    `xml:"testsuites"`
	TestSuites []TestSuite `xml:"testsuite"`
}

type TestSuite

type TestSuite struct {
	XMLName   xml.Name   `xml:"testsuite"`
	Name      string     `xml:"name,attr"`
	Errors    int        `xml:"errors,attr"`
	Failures  int        `xml:"failures,attr"`
	Skipped   int        `xml:"skipped,attr"`
	Tests     int        `xml:"tests,attr"`
	TestCases []TestCase `xml:"testcase"`
	Paths     file.Paths
	// contains filtered or unexported fields
}

func RunPaths

func RunPaths(g git.Git, c cache.Cacher, switches []string, paths []string, v cache.Version) (TestSuite, error)

func RunTests

func RunTests(g git.Git, c cache.Cacher, switches []string, tests []TestCase, v cache.Version) (TestSuite, error)

func (*TestSuite) GetFailures

func (t *TestSuite) GetFailures() []TestCase

type Tests

type Tests []Test

Jump to

Keyboard shortcuts

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