testrunner

package
v0.0.0-...-e674af2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2019 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoteTestingTProvider

func RemoteTestingTProvider(ctx context.Context) context.Context

RemoteTestingTProvider provides a require.TestingT suitable to use in Lambda functions.

func RunTests

func RunTests(t *testing.T, r Runner)

RunTests runs all TestCases using the given Runner.

Types

type Runner

type Runner interface {
	Setup(t *testing.T)
	Teardown(t *testing.T)
	RunTest(t *testing.T, c *testcases.TestCase)
}

Runner describes a test runner that can run a TestCase locally in-memory, or against a test remote Lambda deployment.

func NewLocalRunner

func NewLocalRunner() Runner

NewLocalRunner returns a Runner that runs test cases locally in-memory.

func NewRemoteRunner

func NewRemoteRunner() Runner

NewRemoteRunner returns a Runner that runs test cases against a test remote Lambda deployment.

Jump to

Keyboard shortcuts

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