bdd

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ActorContext *tester.ActorAPI
)

Functions

This section is empty.

Types

type Scenario

type Scenario struct {
	Expr     interface{}
	StepFunc interface{}
}

Scenario contains an expression and a step function that it triggers

type Tester

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

Tester has methods for adding scenarios and running tests

func NewBDDTester

func NewBDDTester(name string) *Tester

NewBDDTester returns a new bdd tester where you can add test scenarios and run them

func (*Tester) AddScenario

func (t *Tester) AddScenario(s Scenario)

AddScenario adds a new scenario

func (*Tester) RunTests

func (t *Tester) RunTests() int

RunTests will run the tests and match them to the given scenarios

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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