Documentation ¶
Index ¶
- Constants
- func GetMD5Hash(text string) string
- type DefaultLabelsScraper
- func (ls *DefaultLabelsScraper) CheckMandatoryLabels(mandatoryLabels []string) error
- func (ls *DefaultLabelsScraper) CreateAllureLabels() (labels []*allure.Label)
- func (ls *DefaultLabelsScraper) GetDescription(defaultDescription string) string
- func (ls *DefaultLabelsScraper) GetID(defaultID uuid.UUID) (uuid.UUID, error)
- func (ls *DefaultLabelsScraper) GetTestCaseLabels() map[string]string
- type DefaultReport
- type LabelScraper
- type LabelsScraperOpt
- type Opt
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 ¶
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) 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 (*DefaultReport) SetLabelsScraper ¶
func (r *DefaultReport) SetLabelsScraper(ls LabelScraper)
type LabelScraper ¶
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
Click to show internal directories.
Click to hide internal directories.