test

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package test provides feature test runner.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunFeatures

func RunFeatures(t *testing.T, envPrefix string, cfg brick.WithBaseConfig, init func(tc *Context) (*brick.BaseLocator, http.Handler))

RunFeatures runs feature tests.

Types

type Context

type Context struct {
	Vars                *shared.Vars
	VS                  *vars.Steps
	Local               *httpsteps.LocalClient
	External            *httpsteps.ExternalServer
	Database            *dbsteps.Manager
	ScenarioInitializer func(s *godog.ScenarioContext)
	OptionsInitializer  func(options *godog.Options)
	Concurrency         int
}

Context is a test context for feature tests.

Jump to

Keyboard shortcuts

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