Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GomegaFail ¶
GomegaFail is a utility function provided to hook into the Gomega matcher library. To use this it's easiest to do the following in your set up:
func TestMain(m *testing.M) { RegisterFailHandler(sweet.GomegaFail) sweet.Run(m, func(s *sweet.S) { // ... Suite set up ... }) }
Types ¶
type Plugin ¶
type Plugin interface { Name() string Options() *PluginOptions SetOption(name, value string) Starting() SuiteStarting(suite string) TestStarting(testName *TestName) TestPassed(testName *TestName, stats *TestPassedStats) TestFailed(testName *TestName, stats *TestFailedStats) TestSkipped(testName *TestName, stats *TestSkippedStats) SuiteFinished(suite string, stats *SuiteFinishedStats) Finished() }
type PluginOption ¶
type PluginOptions ¶
type PluginOptions struct { Prefix string Options map[string]*PluginOption }
type S ¶
type S struct {
// contains filtered or unexported fields
}
func (*S) RegisterPlugin ¶
func (*S) SetUpAllTests ¶
func (*S) TearDownAllTests ¶
type SuiteFinishedStats ¶
type T ¶
type T interface { Error(args ...interface{}) Errorf(format string, args ...interface{}) Fail() FailNow() Failed() bool Fatal(args ...interface{}) Fatalf(format string, args ...interface{}) Log(args ...interface{}) Logf(format string, args ...interface{}) Name() string Parallel() Run(name string, f func(t T)) bool Skip(args ...interface{}) SkipNow() Skipf(format string, args ...interface{}) Skipped() bool Sweet() SweetUtil }
type TestFailedFrame ¶
type TestFailedStats ¶
type TestFailedStats struct { Name *TestName Time time.Duration Message string Frames []*TestFailedFrame }
type TestName ¶ added in v0.3.0
func (*TestName) AddTestName ¶ added in v0.3.0
type TestPassedStats ¶
type TestSkippedStats ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.