testresultexport

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// ResultDescriptorFileName is the name of the test result descriptor file.
	ResultDescriptorFileName = "test-info.json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Exporter

type Exporter struct {
	// contains filtered or unexported fields
}

Exporter is an implementation of the ExporterInterface

func NewExporter

func NewExporter(exportPath string) *Exporter

NewExporter instantiates a new exporter

func (*Exporter) ExportTest

func (e *Exporter) ExportTest(name string, testResultPath string) error

ExportTest exports a test result with a given name

func (*Exporter) SetCopy

func (e *Exporter) SetCopy(copy func(src, dst string) error)

SetCopy sets generateTestInfoFile

func (*Exporter) SetGenerateTestInfoFile

func (e *Exporter) SetGenerateTestInfoFile(generateTestInfoFile func(dir string, data *TestInfo) error)

SetGenerateTestInfoFile sets generateTestInfoFile

func (*Exporter) SetMkdirAll

func (e *Exporter) SetMkdirAll(mkdirAll func(path string, perm os.FileMode) error)

SetMkdirAll sets mkdirAll

type TestInfo

type TestInfo struct {
	Name string `json:"test-name" yaml:"test-name"` // Test name
}

TestInfo ...

Jump to

Keyboard shortcuts

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