runner

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2018 License: Apache-2.0 Imports: 22 Imported by: 3

Documentation

Index

Constants

View Source
const (
	// GeneralError denotes runner error not related to tests failures
	GeneralError = ""
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment

type Environment struct {
	*gohan_otto.Environment
	// contains filtered or unexported fields
}

Environment of a single test runner

func NewEnvironment

func NewEnvironment(testFileName string, testSource []byte) *Environment

NewEnvironment creates a new test environment based on provided DB connection

func (*Environment) CheckAllMockCallsMade

func (env *Environment) CheckAllMockCallsMade() error

CheckAllMockCallsMade check if all declared mock calls were made

func (*Environment) ClearEnvironment

func (env *Environment) ClearEnvironment()

ClearEnvironment clears mock calls between tests and rollbacks test transaction

func (*Environment) InitializeEnvironment

func (env *Environment) InitializeEnvironment() error

InitializeEnvironment creates new transaction for the test

type TestRunner

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

TestRunner abstracts running extension tests from a single file

func NewTestRunner

func NewTestRunner(testFileName string, printAllLogs bool, testFilter string) *TestRunner

NewTestRunner creates a new test runner for a given test file

func (*TestRunner) Run

func (runner *TestRunner) Run() TestRunnerErrors

Run performs extension tests from the file specified at runner's creation

type TestRunnerErrors

type TestRunnerErrors map[string]error

TestRunnerErrors map[testFunction]error

Jump to

Keyboard shortcuts

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