process_result

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(ctx context.Context, setters ...Option) error

Register register ReportAfterSuite (named afterSuiteReport) when called.

Types

type ElasticInfo

type ElasticInfo struct {
	URL   string // elastic DB URL
	Index string // elastic DB Index
}

type JiraInfo

type JiraInfo struct {
	BaseURL   string // jira base URL
	Project   string // jira Project name
	Board     string // jira Board Name
	Component string // if not empty, any jira filed issue will have this as component
	Username  string // jira username. This is required field. When a test fails, a bug is filed.
	// If a bug is already open for the failed test, no new bug will be open. Simply
	// a new comment will added. jql to search for open bug uses also reporter = username
	Password string // jira password
}

type Option

type Option func(*Options)

func WithDryRun

func WithDryRun() Option

func WithElastic

func WithElastic(info ElasticInfo) Option

func WithJira

func WithJira(info JiraInfo) Option

func WithLogs

func WithLogs() Option

func WithRunID

func WithRunID(runID int64) Option

func WithSlack

func WithSlack(info SlackInfo) Option

func WithWebex

func WithWebex(info WebexInfo) Option

type Options

type Options struct {
	ElasticInfo *ElasticInfo
	WebexInfo   *WebexInfo
	SlackInfo   *SlackInfo
	JiraInfo    *JiraInfo
	RunID       int64
	DryRun      bool
	EnableLogs  bool
}

type SlackInfo

type SlackInfo struct {
	AuthToken string // slack auth token
	Channel   string // slack channel name
}

type WebexInfo

type WebexInfo struct {
	AuthToken string // webex auth token
	Room      string // webex room
}

Jump to

Keyboard shortcuts

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