runner

package
v1.21.4 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunWithTesting

func RunWithTesting(t *testing.T, params *RunWithTestingParams)

RunWithTesting is a helper function the wraps the common Run and provides simple way to configure Gonkey by filling the params structure.

Types

type Aerospike added in v1.18.2

type Aerospike struct {
	*aerospike.Client
	Namespace string
}

type Config

type Config struct {
	Host           string
	FixturesLoader fixtures.Loader
	Mocks          *mocks.Mocks
	MocksLoader    *mocks.Loader
	Variables      *variables.Variables
	HTTPProxyURL   *url.URL
}

type ConsoleHandler added in v1.19.0

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

func NewConsoleHandler added in v1.19.0

func NewConsoleHandler() *ConsoleHandler

func (*ConsoleHandler) HandleTest added in v1.19.0

func (h *ConsoleHandler) HandleTest(test models.TestInterface, executeTest testExecutor) error

func (*ConsoleHandler) Summary added in v1.19.0

func (h *ConsoleHandler) Summary() *models.Summary

type RunWithTestingParams

type RunWithTestingParams struct {
	Server      *httptest.Server
	TestsDir    string
	Mocks       *mocks.Mocks
	FixturesDir string
	DB          *sql.DB
	Aerospike   Aerospike
	// If DB parameter present, used to recognize type of database, if not set, by default uses Postgres
	DbType        fixtures.DbType
	EnvFilePath   string
	OutputFunc    output.OutputInterface
	Checkers      []checker.CheckerInterface
	FixtureLoader fixtures.Loader
}

type Runner

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

func New

func New(config *Config, loader testloader.LoaderInterface, handler testHandler) *Runner

func (*Runner) AddCheckers

func (r *Runner) AddCheckers(c ...checker.CheckerInterface)

func (*Runner) AddOutput

func (r *Runner) AddOutput(o ...output.OutputInterface)

func (*Runner) Run

func (r *Runner) Run() error

Jump to

Keyboard shortcuts

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