slack

package
v0.0.0-...-f96b470 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package slack provides a slack client for reporting test results.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	SendProjectRun(ctx context.Context, projectRun *ProjectRun) error
}

Client is the interface for sending slack messages.

func NewClient

func NewClient(webhookURL string) Client

NewClient creates a new slack client.

type ProjectRun

type ProjectRun struct {
	Name         string
	Success      bool
	Version      string
	Duration     time.Duration
	Time         time.Time
	ScenarioRuns []*ScenarioRunDetails
}

ProjectRun is the output of a project run.

type ScenarioRunDetails

type ScenarioRunDetails struct {
	Name                 string
	Duration             time.Duration
	SuccessfulAssertions int
	Assertions           int
	Success              bool
}

ScenarioRunDetails is the output of a scenario run.

Jump to

Keyboard shortcuts

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