parser

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	TransformOpts     []transform.Opt
	LabelsScraperOpts []report.LabelsScraperOpt
	ReportOpts        []report.Opt
}

type CreationFunc

type CreationFunc func(types.SpecReport, Config) (*Parser, error)

type Parser

type Parser struct {
	Transformer  Transformer
	Reporter     Reporter
	LabelScraper report.LabelScraper
	// contains filtered or unexported fields
}

func NewDefaultParser

func NewDefaultParser(specReport types.SpecReport, config Config) (*Parser, error)

func NewParser

func NewParser(specReport types.SpecReport, transformer Transformer,
	ls report.LabelScraper, reporter Reporter) *Parser

func (*Parser) GetAllureReport

func (p *Parser) GetAllureReport() (allure.Result, error)

type Reporter

type Reporter interface {
	GenerateAllureReport([]*allure.Step) (allure.Result, error)
	SetLabelsScraper(ls report.LabelScraper)
}

type Transformer

type Transformer interface {
	AnalyzeEvents(types.SpecEvents, types.Failure) error
	GetAllureSteps() []*allure.Step
}

Jump to

Keyboard shortcuts

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