goit

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 5 Imported by: 0

README

goit - Go Integration Tests

goit library helps writing integration tests using dockertest library

Documentation

Index

Constants

This section is empty.

Variables

We need these public variables to share information betwee TestMain and OtherTests, if you have a better idea, tell me

Functions

func Start

func Start(ctx context.Context, containers ...Container)

Start the integration test environment

func Stop

func Stop()

Stop the integration test environment

Types

type Container

type Container interface {
	// Options to execute the container
	Options() (*dockertest.RunOptions, error)

	// Executed after the container is started, use it to run migrations
	// copy files, etc
	AfterStart(context.Context, *dockertest.Resource) error
}

Container represents a docker container

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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