testhelper

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package testhelper contains a collection of test helper functions that are specific to the way E2E tests are executed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NoParallel

func NoParallel(fn func(*testing.T)) func(*testing.T)

func TestRunner

func TestRunner(tests map[string]func(*testing.T)) func(*testing.T)

TestRunner returns a function that when called runs the provided list of tests within a specific test context.

Types

type Group

type Group func(e2e.TestEnv) Tests

type Suite

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

func NewSuite

func NewSuite(t *testing.T, env e2e.TestEnv) *Suite

func (*Suite) AddGroup

func (s *Suite) AddGroup(name string, group Group)

func (*Suite) Run

func (s *Suite) Run()

type Tests

type Tests map[string]func(*testing.T)

Jump to

Keyboard shortcuts

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