Documentation ¶
Index ¶
- Constants
- func LogTestSuite(device *rats.Device, manifest *apk.Manifest, out chan *RunPair)
- func RunTest(device *rats.Device, manifest *apk.Manifest, out chan *RunPair)
- func RunTests(manifest *apk.Manifest, devices []*rats.Device) (chan *rats.Device, chan *TestSuites)
- type RunPair
- type TestCase
- type TestSuite
- type TestSuites
Constants ¶
View Source
const ( NUM_TESTS = iota STREAM ID TEST CLASS CURRENT STACK CODE LONG_MSG )
Variables ¶
This section is empty.
Functions ¶
func LogTestSuite ¶
Types ¶
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"` }
Click to show internal directories.
Click to hide internal directories.