report

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: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EpicLabelName        = "epic"
	SuiteLabelName       = "suite"
	FeatureLabelName     = "feature"
	IDLabelName          = "id"
	DescriptionLabelName = "description"

	DefaultLabelSpliter   = "="
	DefaultEpic           = ""
	DefaultSuiteName      = ""
	DefaultAutoGenerateID = false

	CorrectCountLabelsParts = 2
)

Variables

This section is empty.

Functions

func GetMD5Hash

func GetMD5Hash(text string) string

Types

type DefaultLabelsScraper

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

func NewLabelScraper

func NewLabelScraper(leafNodeText string, leafNodeLabels []string,
	scraperOptions ...LabelsScraperOpt) *DefaultLabelsScraper

func (*DefaultLabelsScraper) CheckMandatoryLabels

func (ls *DefaultLabelsScraper) CheckMandatoryLabels(mandatoryLabels []string) error

func (*DefaultLabelsScraper) CreateAllureLabels

func (ls *DefaultLabelsScraper) CreateAllureLabels() (labels []*allure.Label)

func (*DefaultLabelsScraper) GetDescription

func (ls *DefaultLabelsScraper) GetDescription(defaultDescription string) string

func (*DefaultLabelsScraper) GetID

func (ls *DefaultLabelsScraper) GetID(defaultID uuid.UUID) (uuid.UUID, error)

func (*DefaultLabelsScraper) GetTestCaseLabels

func (ls *DefaultLabelsScraper) GetTestCaseLabels() map[string]string

type DefaultReport

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

func NewReport

func NewReport(specReport types.SpecReport, opts ...Opt) *DefaultReport

func (*DefaultReport) GenerateAllureReport

func (r *DefaultReport) GenerateAllureReport(steps []*allure.Step) (allure.Result, error)

func (*DefaultReport) SetLabelsScraper

func (r *DefaultReport) SetLabelsScraper(ls LabelScraper)

type LabelScraper

type LabelScraper interface {
	CheckMandatoryLabels([]string) error
	CreateAllureLabels() []*allure.Label
	GetID(uuid.UUID) (uuid.UUID, error)
	GetDescription(string) string
}

type LabelsScraperOpt

type LabelsScraperOpt func(o *DefaultLabelsScraper)

func WillAutoGenerateID

func WillAutoGenerateID(autogen bool) LabelsScraperOpt

func WithEpic

func WithEpic(epic string) LabelsScraperOpt

func WithLabelSpliter

func WithLabelSpliter(splitter string) LabelsScraperOpt

func WithSuiteName

func WithSuiteName(suiteName string) LabelsScraperOpt

type Opt

type Opt func(o *DefaultReport)

func WithMandatoryLabels

func WithMandatoryLabels(labels []string) Opt

Jump to

Keyboard shortcuts

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