Documentation
¶
Index ¶
- type StdRunner
- func (tc *StdRunner) Errorf(format string, args ...interface{})
- func (tc *StdRunner) Fatal(args ...interface{})
- func (tc *StdRunner) Fatalf(format string, args ...interface{})
- func (tc *StdRunner) Log(args ...interface{})
- func (tc *StdRunner) Logf(format string, args ...interface{})
- func (tc *StdRunner) Run(name string, f func(t TestRunner)) bool
- type Test
- type TestCase
- type TestRunner
- type TestSuite
- type TestSystem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StdRunner ¶ added in v0.0.11
type StdRunner struct {
// contains filtered or unexported fields
}
func NewTestRunner ¶
type Test ¶
type Test interface { Run(t TestRunner) SetLogging(bool) GetTestCases() []TestCase }
type TestRunner ¶
type TestRunner interface { TestSystem Run(name string, f func(t TestRunner)) bool }
TestRunner is an interface that is compatible with the testing.T interface , so that the test suite can be run with the standard go test runner or with any other runner that implements this interface, particularly it is used by `mst` command line runner allowing to use this test suite runner from languages other than Go
type TestSuite ¶
type TestSuite interface { WithBeforeAll(func() error) TestSuite WithAfterAll(func() error) TestSuite WithBeforeEach(func() error) TestSuite WithAfterEach(func() error) TestSuite WithLogging() TestSuite WithExecutable(command string, args []string) TestSuite Run(t TestRunner) Errors() []error AssertNoErrors(t TestRunner) GetTests() []Test }
TestSuite represents a collection of tests that can be run together
type TestSystem ¶ added in v0.0.11
Click to show internal directories.
Click to hide internal directories.