Documentation ¶
Index ¶
- Constants
- func DefaultOutput(prefix, label, funcPath, funcName, suffix string) string
- func JsonOutput(status string, testName, stdOut string, startTime time.Time, ...) string
- func Render(d Data) string
- func TeamcityOutput(status string, testName, stdOut string, startTime time.Time, ...) string
- type Data
- type Formatter
- type JsonTestEvent
- type JsonTestEventAction
Constants ¶
View Source
const ( DefaultFormatter = "default" JsonFormatter = "json" TeamcityFormatter = "teamcity" )
View Source
const ( JsonTestEventActionRun = "run" // the test has started running JsonTestEventActionPause = "pause" // the test has been paused JsonTestEventActionCount = "cont" // the test has continued running JsonTestEventActionPass = "pass" // the test passed JsonTestEventActionBench = "bench" // the benchmark printed log output but did not fail JsonTestEventActionFail = "fail" // the test or benchmark failed JsonTestEventActionOutput = "output" // the test printed output JsonTestEventActionSkip = "skip" // the test was skipped or the package contained no tests )
https://github.com/golang/go/blob/master/src/cmd/test2json/main.go
View Source
const (
TeamcityTimestampFormat = "2006-01-02T15:04:05.000"
)
Variables ¶
This section is empty.
Functions ¶
func DefaultOutput ¶
Types ¶
type JsonTestEvent ¶
type JsonTestEventAction ¶
type JsonTestEventAction string
Click to show internal directories.
Click to hide internal directories.