integration

package
v0.0.0-...-8495beb Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Test

func Test(t *testing.T, cfg *config.Config, o ...fx.Option) func()

Test provides a full app setup for testing service behaviour. It returns a context cancellation function for immediate shutdown once all test functions have finished. Usage is a simple call and defer:

func TestMyThing(t *testing.T) {
    defer bdd.Test(t, nil, fx.Invoke(func(test dependencies...) {
        r := require.New(t)
        a := assert.New(t)

        your behavioural test code...

    }))
}

Types

This section is empty.

Jump to

Keyboard shortcuts

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