Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Test ¶
type Test struct { Parent *Test `json:"-"` Index int `json:"index"` StartedAt Time `json:"started_at"` EndedAt Time `json:"ended_at"` FullName string `json:"full_name"` Package string `json:"package"` Output []*Output `json:"output"` Done bool `json:"done"` Skipped bool `json:"skipped"` Passed bool `json:"passed"` Elapsed time.Duration `json:"elapsed"` Tests []*Test `json:"tests"` }
func (*Test) FullOutput ¶
type TestAction ¶
type TestAction string
const ( // The test binary is about to be executed TestActionStart TestAction = "start" // The test has started running TestActionRun TestAction = "run" // The test has been paused TestActionPause TestAction = "pause" // The test has continued running TestActionCont TestAction = "cont" // The test passed TestActionPass TestAction = "pass" // The benchmark printed log output but did not fail TestActionBench TestAction = "bench" // The test or benchmark failed TestActionFail TestAction = "fail" // The test printed output TestActionOutput TestAction = "output" // The test was skipped or the package contained no tests TestActionSkip TestAction = "skip" )
type TestCapture ¶
type TestEvent ¶
type TestEvent struct { Time Time Action TestAction Package string Test string Elapsed float64 Output string }
func (*TestEvent) ParentTest ¶ added in v0.2.1
Click to show internal directories.
Click to hide internal directories.