plugins

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BehaviorsExtraBlockName = "behaviors"
	BehaviorsJsonFileName   = "behaviors.json"
	BehaviorsCsvFileName    = "behaviors.csv"

	BehaviorsEpicLabelName    = "epic"
	BehaviorsFeatureLabelName = "feature"
	BehaviorsStoryLabelName   = "story"
)
View Source
const (
	CategoriesExtraBlockName = "categories"
	CategoriesJsonFileName   = "categories.json"
	CategoriesCsvFileName    = "categories.csv"

	CategoriesTrendJsonFileName = "categories-trend.json"
)
View Source
const (
	DurationTrendKey       = "duration"
	DurationExtraBlockName = "categories"
	DurationJsonFileName   = "duration.json"

	DurationTrendJsonFileName = "duration-trend.json"
)
View Source
const (
	EnvironmentPropertiesFileName = "environment.properties"
	EnvironmentJsonFileName       = "environment.json"
)
View Source
const (
	ExecutorExtraBlockName = "executor"
	ExecutorJsonFileName   = "executors.json"
)
View Source
const (
	HistoryExtraBlockName = "history"
	HistoryJsonFileName   = "history.json"

	HistoryTrendJsonFileName = "history-trend.json"
)
View Source
const (
	PackagesExtraBlockName = "packages"
	PackagesLabelName      = "package"
	PackagesJsonFileName   = "packages.json"
)
View Source
const (
	SeverityLabelName = "severity"
	SeverityExtraBlockName
	SeverityJsonFileName = "severity.json"

	ChartJsonFileName = "status-chart.json"
)
View Source
const (
	SuitesExtraBlockName = "suites"
	SuitesJsonFileName   = "suites.json"
	SuitesCsvFileName    = "suites.csv"

	SuitesParentSuiteLabelName = "parentSuite"
	SuitesSuiteLabelName       = "suite"
	SuitesSubSuiteLabelName    = "subSuite"
)
View Source
const (
	SummaryJsonFileName = "summary.json"
	DefaultReportName   = "Allure Report"
)
View Source
const (
	TagLabelRegexp    = "^@?allure\\.label\\.(?<name>.+)[:=](?<value>.+)$"
	TagExtraBlockName = "tags"
	TagLabelName      = "tag"
)
View Source
const (
	TimelineExtraBlockName = "timeline"
	TimelineJsonFileName   = "timeline.json"

	TimelineHostLabelName   = "host"
	TimelineThreadLabelName = "thread"
)
View Source
const (
	Name = "Containers"
)

Variables

This section is empty.

Functions

func Max

func Max(a, b int64) int64

func Min

func Min(a, b int64) int64

Types

type AttachmentsContainerPlugin

type AttachmentsContainerPlugin struct {
	AttachmentsPlugin
}

func (*AttachmentsContainerPlugin) Process

type AttachmentsPlugin

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

func (*AttachmentsPlugin) Merge

func (p *AttachmentsPlugin) Merge(_ context.Context, index int, threadResults []*common.PluginResult, out *common.PluginResult) error

func (*AttachmentsPlugin) Process

func (p *AttachmentsPlugin) Process(ctx context.Context, t *common.Test)

func (*AttachmentsPlugin) ReadState

func (p *AttachmentsPlugin) ReadState(context.Context) error

func (*AttachmentsPlugin) SendState

func (p *AttachmentsPlugin) SendState() any

type BehaviorsCsvData

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

type BehaviorsData

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

type BehaviorsPlugin

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

func (*BehaviorsPlugin) Merge

func (p *BehaviorsPlugin) Merge(ctx context.Context, index int, threadResults []*common.PluginResult, _ *common.PluginResult) error

func (*BehaviorsPlugin) Process

func (p *BehaviorsPlugin) Process(ctx context.Context, t *common.Test)

func (*BehaviorsPlugin) ReadState

func (p *BehaviorsPlugin) ReadState(ctx context.Context) error

func (*BehaviorsPlugin) SendState

func (p *BehaviorsPlugin) SendState() any

type CategoriesPlugin

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

func (*CategoriesPlugin) Merge

func (p *CategoriesPlugin) Merge(ctx context.Context, index int, threadResults []*common.PluginResult, _ *common.PluginResult) error

func (*CategoriesPlugin) Process

func (p *CategoriesPlugin) Process(ctx context.Context, t *common.Test)

func (*CategoriesPlugin) ReadState

func (p *CategoriesPlugin) ReadState(ctx context.Context) error

func (*CategoriesPlugin) SendState

func (p *CategoriesPlugin) SendState() any

type Category

type Category struct {
	Name            string   `json:"name,omitempty"`
	Description     string   `json:"description,omitempty"`
	DescriptionHtml string   `json:"descriptionHtml,omitempty"`
	MessageRegex    string   `json:"messageRegex,omitempty"`
	TraceRegex      string   `json:"traceRegex,omitempty"`
	MatchedStatuses []string `json:"matchedStatuses,omitempty"`
	Flaky           bool     `json:"flaky,omitempty"`
}

func BrokenTests

func BrokenTests() *Category

func FailedTests

func FailedTests() *Category

type CategoryData

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

type Duration

type Duration struct {
	Uid      string       `bson:"uid"`
	Name     string       `json:"name,omitempty"`
	Time     *common.Time `json:"time,omitempty"`
	Status   string       `json:"status,omitempty"`
	Severity string       `json:"severity,omitempty"`
}

func DurationFromTest

func DurationFromTest(t *common.Test) *Duration

type DurationData

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

type DurationPlugin

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

func (*DurationPlugin) Merge

func (p *DurationPlugin) Merge(ctx context.Context, index int, threadResults []*common.PluginResult, out *common.PluginResult) error

func (*DurationPlugin) Process

func (p *DurationPlugin) Process(ctx context.Context, t *common.Test)

func (*DurationPlugin) ReadState

func (p *DurationPlugin) ReadState(ctx context.Context) error

func (*DurationPlugin) SendState

func (p *DurationPlugin) SendState() any

type DurationTrendItem

type DurationTrendItem struct {
	common.TrendItem
	GroupTime *GroupTime `json:"-"`
}

type EnvironmentItem

type EnvironmentItem struct {
	Name   string   `json:"name"`
	Values []string `json:"values"`
}

type EnvironmentPlugin

type EnvironmentPlugin struct {
}

func (*EnvironmentPlugin) Merge

func (*EnvironmentPlugin) Process

func (p *EnvironmentPlugin) Process(ctx context.Context, t *common.Test)

func (*EnvironmentPlugin) ReadState

func (p *EnvironmentPlugin) ReadState(context.Context) error

func (*EnvironmentPlugin) SendState

func (p *EnvironmentPlugin) SendState() any

type ExecutorInfo

type ExecutorInfo struct {
	Name       string `json:"name,omitempty"`
	Type       string `json:"type,omitempty"`
	Url        string `json:"url,omitempty"`
	BuildOrder int64  `json:"buildOrder,omitempty"`
	BuildName  string `json:"buildName,omitempty"`
	BuildUrl   string `json:"buildUrl,omitempty"`
	ReportName string `json:"reportName,omitempty"`
	ReportUrl  string `json:"reportUrl,omitempty"`
}

type ExecutorPlugin

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

func (*ExecutorPlugin) Merge

func (p *ExecutorPlugin) Merge(ctx context.Context, index int, threadResults []*common.PluginResult, _ *common.PluginResult) error

func (*ExecutorPlugin) Process

func (p *ExecutorPlugin) Process(ctx context.Context, t *common.Test)

func (*ExecutorPlugin) ReadState

func (p *ExecutorPlugin) ReadState(ctx context.Context) error

func (*ExecutorPlugin) SendState

func (p *ExecutorPlugin) SendState() any

type ExecutorState

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

type FixturePlugin

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

func (*FixturePlugin) Merge

func (p *FixturePlugin) Merge(_ context.Context, index int, threadResults []*common.PluginResult, out *common.PluginResult) error

func (*FixturePlugin) Process

func (*FixturePlugin) ReadState

func (p *FixturePlugin) ReadState(context.Context) error

func (*FixturePlugin) SendState

func (p *FixturePlugin) SendState() any

type GroupTime

type GroupTime struct {
	Start       int64 `json:"start"`
	Stop        int64 `json:"stop"`
	Duration    int64 `json:"duration"`
	MinDuration int64 `json:"minDuration"`
	MaxDuration int64 `json:"maxDuration"`
	SumDuration int64 `json:"sumDuration"`
}

func (*GroupTime) Merge

func (gt *GroupTime) Merge(added *GroupTime)

func (*GroupTime) Update

func (gt *GroupTime) Update(time *common.Time)

type HistoryData

type HistoryData struct {
	Statistic *common.Statistic
	Items     []*HistoryItem
}

type HistoryItem

type HistoryItem struct {
	Uid           string       `json:"uid,omitempty"`
	ReportUrl     string       `json:"reportUrl,omitempty"`
	Status        string       `json:"status,omitempty"`
	StatusDetails string       `json:"statusDetails,omitempty"`
	Time          *common.Time `json:"time,omitempty"`
}

type HistoryPlugin

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

func (*HistoryPlugin) Merge

func (p *HistoryPlugin) Merge(ctx context.Context, index int, threadResults []*common.PluginResult, _ *common.PluginResult) error

func (*HistoryPlugin) Process

func (p *HistoryPlugin) Process(_ context.Context, t *common.Test)

func (*HistoryPlugin) ReadState

func (p *HistoryPlugin) ReadState(ctx context.Context) error

func (*HistoryPlugin) SendState

func (p *HistoryPlugin) SendState() any

type HistoryState

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

type HistoryTrendItem

type HistoryTrendItem struct {
	Data *common.Statistic `json:"data"`
}

type PackagesData

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

type PackagesPlugin

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

func (*PackagesPlugin) Merge

func (p *PackagesPlugin) Merge(ctx context.Context, index int, threadResults []*common.PluginResult, _ *common.PluginResult) error

func (*PackagesPlugin) Process

func (p *PackagesPlugin) Process(ctx context.Context, t *common.Test)

func (*PackagesPlugin) ReadState

func (p *PackagesPlugin) ReadState(ctx context.Context) error

func (*PackagesPlugin) SendState

func (p *PackagesPlugin) SendState() any

type SeverityData

type SeverityData struct {
	Uid      string       `json:"uid"`
	Name     string       `json:"name,omitempty"`
	Time     *common.Time `json:"time,omitempty"`
	Status   string       `json:"status,omitempty"`
	Severity string       `json:"severity,omitempty"`
}

func SeverityFromTest

func SeverityFromTest(t *common.Test) *SeverityData

type SeverityPlugin

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

func (*SeverityPlugin) Merge

func (p *SeverityPlugin) Merge(ctx context.Context, index int, threadResults []*common.PluginResult, out *common.PluginResult) error

func (*SeverityPlugin) Process

func (p *SeverityPlugin) Process(ctx context.Context, t *common.Test)

func (*SeverityPlugin) ReadState

func (p *SeverityPlugin) ReadState(context.Context) error

func (*SeverityPlugin) SendState

func (p *SeverityPlugin) SendState() any

type SuitesData

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

type SuitesPlugin

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

func (*SuitesPlugin) Merge

func (p *SuitesPlugin) Merge(ctx context.Context, index int, threadResults []*common.PluginResult, _ *common.PluginResult) error

func (*SuitesPlugin) Process

func (p *SuitesPlugin) Process(ctx context.Context, t *common.Test)

func (*SuitesPlugin) ReadState

func (p *SuitesPlugin) ReadState(ctx context.Context) error

func (*SuitesPlugin) SendState

func (p *SuitesPlugin) SendState() any

type SummaryData

type SummaryData struct {
	ReportName string            `json:"reportName"`
	TestRuns   []string          `json:"testRuns"`
	Statistic  *common.Statistic `json:"statistic"`
	Time       *GroupTime        `json:"time"`
}

type SummaryPlugin

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

func (*SummaryPlugin) Merge

func (p *SummaryPlugin) Merge(ctx context.Context, index int, threadResults []*common.PluginResult, _ *common.PluginResult) error

func (*SummaryPlugin) Process

func (p *SummaryPlugin) Process(ctx context.Context, t *common.Test)

func (*SummaryPlugin) ReadState

func (p *SummaryPlugin) ReadState(context.Context) error

func (*SummaryPlugin) SendState

func (p *SummaryPlugin) SendState() any

type TagsPlugin

type TagsPlugin struct {
}

func (*TagsPlugin) Merge

func (*TagsPlugin) Process

func (p *TagsPlugin) Process(_ context.Context, t *common.Test)

func (*TagsPlugin) ReadState

func (p *TagsPlugin) ReadState(context.Context) error

func (*TagsPlugin) SendState

func (p *TagsPlugin) SendState() any

type TimelineData

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

type TimelinePlugin

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

func (*TimelinePlugin) Merge

func (p *TimelinePlugin) Merge(ctx context.Context, index int, threadResults []*common.PluginResult, _ *common.PluginResult) error

func (*TimelinePlugin) Process

func (p *TimelinePlugin) Process(_ context.Context, t *common.Test)

func (*TimelinePlugin) ReadState

func (p *TimelinePlugin) ReadState(_ context.Context) error

func (*TimelinePlugin) SendState

func (p *TimelinePlugin) SendState() any

Jump to

Keyboard shortcuts

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