formatters

package
v0.0.0-...-ed06964 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PASSED_TEST_ICON = "✔"
	FAILED_TEST_ICON = "✘"
)

Variables

This section is empty.

Functions

func OuputsStr

func OuputsStr() []string

func TestRun

func TestRun(baseURLFn func() string, colorsEnabled bool, options ...testRunFormatterOption) testRun

func TestSuiteRun

func TestSuiteRun(baseURLFn func() string, colorsEnabled bool) testSuiteRun

func ValidOutput

func ValidOutput(o Output) bool

func WithPadding

func WithPadding(padding int) testRunFormatterOption

Types

type Output

type Output string
var (
	Outputs = []Output{
		Pretty,
		JSON,
		YAML,
	}
	Pretty Output = "pretty"
	JSON   Output = "json"
	YAML   Output = "yaml"
)

type TestRunOutput

type TestRunOutput struct {
	HasResults bool            `json:"-"`
	IsFailed   bool            `json:"-"`
	Test       openapi.Test    `json:"test"`
	Run        openapi.TestRun `json:"testRun"`
	RunWebURL  string          `json:"testRunWebUrl"`
}

type TestSuiteRunOutput

type TestSuiteRunOutput struct {
	HasResults bool                 `json:"-"`
	TestSuite  openapi.TestSuite    `json:"testSuite"`
	Run        openapi.TestSuiteRun `json:"testSuiteRun"`
	RunWebURL  string               `json:"testSuiteRunWebUrl"`
}

Jump to

Keyboard shortcuts

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