allure_report

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Allure

type Allure struct {
	Suites    []*beans.Suite
	TargetDir string
}

func New

func New(suites []*beans.Suite) *Allure

func (*Allure) AddAttachment

func (a *Allure) AddAttachment(attachmentName, buf bytes.Buffer, typ string)

func (*Allure) CreateStep

func (a *Allure) CreateStep(name string, stepFunc func())

func (*Allure) EndCase

func (a *Allure) EndCase(status string, err error, end time.Time)

func (*Allure) EndStep

func (a *Allure) EndStep(status string, end time.Time)

func (*Allure) EndSuite

func (a *Allure) EndSuite(end time.Time) error

func (*Allure) GetCurrentSuite

func (a *Allure) GetCurrentSuite() *beans.Suite

func (*Allure) PendingCase

func (a *Allure) PendingCase(testName string, start time.Time)

func (*Allure) StartCase

func (a *Allure) StartCase(testName string, start time.Time) *beans.TestCase

func (*Allure) StartStep

func (a *Allure) StartStep(stepName string, start time.Time)

func (*Allure) StartSuite

func (a *Allure) StartSuite(name string, start time.Time)

type Allure2Output

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

Allure2Output generates Allure 2 JSON format reports

func NewAllure2Output

func NewAllure2Output(reportLocation string) *Allure2Output

NewAllure2Output creates a new Allure 2 output handler

func (*Allure2Output) Finalize

func (o *Allure2Output) Finalize()

func (*Allure2Output) Process

func (o *Allure2Output) Process(t models.TestInterface, result *models.Result) error

func (*Allure2Output) WithDefaultLabels

func (o *Allure2Output) WithDefaultLabels(packageLabel, testClassLabel string) *Allure2Output

WithDefaultLabels sets default package and testClass labels

type AllureReportOutput

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

func NewOutput

func NewOutput(suiteName, reportLocation string) *AllureReportOutput

func (*AllureReportOutput) Finalize

func (o *AllureReportOutput) Finalize()

func (*AllureReportOutput) Process

func (o *AllureReportOutput) Process(t models.TestInterface, result *models.Result) error

type ErrorsByIdentifier

type ErrorsByIdentifier map[string][]error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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