report

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Assert

type Assert struct {
	Index    int    `json:"index"`
	Passed   bool   `json:"passed"`
	Output   string `json:"output"`
	Manifest string `json:"manifest"`
}

Assert contains the test result from an assert.

type Chart added in v0.3.0

type Chart struct {
	Path    string `json:"path"`
	Name    string `json:"name"`
	Version string `json:"version"`
	Icon    string `json:"icon"`
}

type Manifest added in v0.3.0

type Manifest struct {
	Path string `json:"path"`
	Data string `json:"data"`
}

Manifest contains the manifest path and data selected for the test report.

type Report

type Report struct {
	Date  string `json:"date"`
	Chart Chart  `json:"chart"`
	Score Score  `json:"score"`
	Tests []Test `json:"tests"`
}

Report contains the overall test report.

func NewReport

func NewReport() Report

NewReport returns a new instance of Report.

type Score

type Score struct {
	Total   int `json:"total"`
	Passed  int `json:"passed"`
	Failed  int `json:"failed"`
	Skipped int `json:"skipped"`
}

Score contains numeric results.

type Test

type Test struct {
	Name      string     `json:"name"`
	Summary   string     `json:"summary"`
	Passed    bool       `json:"passed"`
	Skipped   bool       `json:"skipped"`
	Score     Score      `json:"score"`
	Manifests []Manifest `json:"manifests"`
	Asserts   []Assert   `json:"asserts"`
}

Test contains test information and results.

func NewTest

func NewTest() Test

NewTest returns a new instance of Test.

Jump to

Keyboard shortcuts

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