Documentation ¶
Overview ¶
Package junit provides a junit viewer for Spyglass
Index ¶
- type JVD
- type JunitResult
- type Lens
- func (lens Lens) Body(artifacts []api.Artifact, resourceDir string, data string, ...) string
- func (lens Lens) Callback(artifacts []api.Artifact, resourceDir string, data string, ...) string
- func (lens Lens) Config() lenses.LensConfig
- func (lens Lens) Header(artifacts []api.Artifact, resourceDir string, config json.RawMessage, ...) string
- type TestResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JVD ¶
type JVD struct { NumTests int Passed []TestResult Failed []TestResult Skipped []TestResult Flaky []TestResult }
type JunitResult ¶
func (JunitResult) Duration ¶
func (jr JunitResult) Duration() time.Duration
func (JunitResult) SkippedReason ¶
func (jr JunitResult) SkippedReason() string
func (JunitResult) Status ¶
func (jr JunitResult) Status() testStatus
type Lens ¶
type Lens struct{}
Lens is the implementation of a JUnit-rendering Spyglass lens.
func (Lens) Body ¶
func (lens Lens) Body(artifacts []api.Artifact, resourceDir string, data string, config json.RawMessage, spyglassConfig config.Spyglass) string
Body renders the <body> for JUnit tests
func (Lens) Callback ¶
func (lens Lens) Callback(artifacts []api.Artifact, resourceDir string, data string, config json.RawMessage, spyglassConfig config.Spyglass) string
Callback does nothing.
func (Lens) Config ¶
func (lens Lens) Config() lenses.LensConfig
Config returns the lens's configuration.
type TestResult ¶
type TestResult struct { Junit []JunitResult Link string }
TestResult holds data about a test extracted from junit output
Click to show internal directories.
Click to hide internal directories.