runner

package
v0.0.0-...-3f89d33 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2015 License: Apache-2.0 Imports: 16 Imported by: 0

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) *TestRunner

NewTestRunner creates a new test runner for a given test file

func (*TestRunner) Run

func (runner *TestRunner) Run() map[string]error

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

Jump to

Keyboard shortcuts

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