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
Click to show internal directories.
Click to hide internal directories.