tester

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestApp

func TestApp(appContext *context.AppContext, writer io.Writer, shutdown chan os.Signal) (types.TestResult, error)

TestApp runs the tests for the entire application and return true if the tests passed and an error if any

func TestService

func TestService(serviceContext *context.ServiceContext, writer io.Writer, shutdown chan os.Signal) (types.TestResult, error)

TestService runs the tests for the service and return true if the tests passed and an error if any

Types

type TestRunner

type TestRunner struct {
	AppContext *context.AppContext
	BuildMode  types.BuildMode
	RunOptions composerunner.RunOptions
	Writer     io.Writer
}

TestRunner runs the tests for the given service

func NewTestRunner

func NewTestRunner(appContext *context.AppContext, writer io.Writer) (*TestRunner, error)

NewTestRunner is TestRunner's constructor

func (*TestRunner) RunTest

func (s *TestRunner) RunTest(serviceRole string) (int, error)

RunTest runs the tests for the service and return true if the tests passed and an error if any

func (*TestRunner) Shutdown

func (s *TestRunner) Shutdown() error

Shutdown shuts down the tests

Jump to

Keyboard shortcuts

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