json

package
v0.130.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reporter

type Reporter struct {
	WebhookURL string
	Filename   string
	Results    []report.TestResult
}

Reporter represents struct to report in json format

func (*Reporter) Add

func (r *Reporter) Add(t report.TestResult)

Add adds a TestResult

func (*Reporter) ArtifactRequirements

func (r *Reporter) ArtifactRequirements() []report.ArtifactType

ArtifactRequirements returns a list of artifact types this reporter requires to create a proper report.

func (*Reporter) Render

func (r *Reporter) Render()

Render sends the result to specified webhook WebhookURL and log the result to the specified json file

func (*Reporter) Reset

func (r *Reporter) Reset()

Reset resets the reporter to its initial state. This action will delete all test results.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL