Documentation ¶
Index ¶
Constants ¶
const (
TimeFormat = "2006-01-02 15:04:05.000 -0700"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Build ¶
A Build represents the executions of tests reported by a set of progress files, grouped by progress file path.
type Class ¶
A Class represents the executions of tests in a class, grouped by method description (method name and parameters).
type DurationFilter ¶
func ParseDurationFilter ¶
func ParseDurationFilter(c string) (DurationFilter, error)
type Execution ¶
An Execution describes a single execution of a test. If a test is executed multiple times in a build, the Iteration distinguishes one execution from another. Note that progress assumes that each test result event corresponds to the earliest uncompleted start event for the same test description.
type Filter ¶
type Filter struct { ClassFilter *regexp.Regexp MethodFilter *regexp.Regexp StatusFilter *regexp.Regexp StartTimeFilters []TimeFilter EndTimeFilters []TimeFilter DurationFilters []DurationFilter }
Filter applies a set of criteria to each Execution in a Build.
type FormatReporter ¶
FormatReporter writes each test in a Build, formatted according to a user-specified template.
func (FormatReporter) Report ¶
func (r FormatReporter) Report(build Build) error
Report writes each test in the Build to the stream, formatted according to the template.
type JSONReporter ¶
JSONReporter writes the JSON encoding of a Build to an output stream.
func (JSONReporter) Report ¶
func (r JSONReporter) Report(b Build) error
Report writes the JSON encoding of b to the stream.
type Method ¶
type Method []Execution
A Method represents the executions of a test method with a given set of parameters.
type Task ¶
A Task represents the executions of tests reported by a single progress file, grouped by class name.
type TimeFilter ¶
func ParseTimeFilter ¶
func ParseTimeFilter(c string) (TimeFilter, error)