invoke

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package invoke provides gear supporting to facilitate running Plax tests in different environments (and configurations).

Also see cmd/plaxrun.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Invocation

type Invocation struct {
	Bindings  map[string]interface{}
	SuiteName string
	Filename  string
	// Dir will be added to ctx.IncludeDirs to resolve YAML (and
	// perhaps other) includes.
	Dir               string
	IncludeDirs       []string
	Env               map[string]string
	Seed              int64
	Priority          int
	Labels            string
	Tests             []string
	LogLevel          string
	Verbose           bool
	List              bool
	EmitJSON          bool
	NonzeroOnAnyError bool
	// Retry will override a test's retry policy (if any).
	Retry string
	// contains filtered or unexported fields
}

Invocation struct for execution of a suite of tests

func (*Invocation) Exec

func (inv *Invocation) Exec(ctx context.Context) error

Exec the tests

func (*Invocation) Load

func (inv *Invocation) Load(ctx *dsl.Ctx, filename string) (*dsl.Test, error)

Load a test

func (*Invocation) Run

func (inv *Invocation) Run(ctx *dsl.Ctx, t *dsl.Test) error

Run executes the test with possible retries.

func (*Invocation) RunOnce

func (inv *Invocation) RunOnce(ctx *dsl.Ctx, t *dsl.Test) error

RunOnce executes the test at most one time.

type JSONTestSuite

type JSONTestSuite struct {
	Type   string
	Time   time.Time
	Tests  int
	Passed int
	Failed int
	Errors int
}

JSONTestSuite test results

Jump to

Keyboard shortcuts

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