test

package
v0.0.0-...-1b6ac79 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2014 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NUM_TESTS = iota
	STREAM
	ID
	TEST
	CLASS
	CURRENT
	STACK
	CODE
	LONG_MSG
)

Variables

This section is empty.

Functions

func LogTestSuite

func LogTestSuite(device *rats.Device, manifest *apk.Manifest, out chan *RunPair)

func RunTest

func RunTest(device *rats.Device, manifest *apk.Manifest, out chan *RunPair)

func RunTests

func RunTests(manifest *apk.Manifest, devices []*rats.Device) (chan *rats.Device, chan *TestSuites)

Types

type RunPair

type RunPair struct {
	Tests  *TestSuite
	Device *rats.Device
}

type TestCase

type TestCase struct {
	XMLName   xml.Name `xml:"testcase" json:"-" bson:"-"`
	Classname string   `xml:"classname,attr" json:"classname"`
	Name      string   `xml:"name,attr" json:"name"`
	Time      float64  `xml:"time,attr" json:"time"`
	Failure   *string  `xml:"failure,omitempty" json:"failure,omitempty" bson:"failure,omitempty"`
	Error     *string  `xml:"error,omitempty" json:"error,omitempty" bson:"error,omitempty"`
	Stack     string   `xml:"-" json:"-" bson:"-"`
}

type TestSuite

type TestSuite struct {
	XMLName   xml.Name     `xml:"testsuite" json:"-" bson:"-"`
	Tests     int          `xml:"tests,attr" json:"tests"`
	Failures  int          `xml:"failures,attr" json:"failures"`
	Errors    int          `xml:"errors,attr" json:"errors"`
	Hostname  string       `xml:"hostname,attr" json:"host"`
	Time      float64      `xml:"time,attr" json:"time"`
	Name      string       `xml:"name,attr" json:"name"`
	Device    *rats.Device `xml:"-" json:"device,omitempty" "device,omitempty"`
	TestCases []*TestCase  `json:"cases"`
}

type TestSuites

type TestSuites struct {
	XMLName    xml.Name     `xml:"testsuites" json:"-" bson:"-"`
	TestSuites []*TestSuite `json:"suites,omitempty"`
	Name       string       `xml:"name,attr" json:"name"`
	Project    string       `json:"project"`
	Timestamp  time.Time    `json:"timestamp"`
	Time       float64      `xml:"time,attr" json:"time"`
	Message    string       `json:"description"`
	Success    bool         `json:"success"`
}

Jump to

Keyboard shortcuts

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