Documentation ¶
Index ¶
- type Feature
- func (f *Feature) And(and string, fn func())
- func (f *Feature) Background(name string, fn func(t *testing.T, f *Feature))
- func (f *Feature) But(but string, fn func())
- func (f *Feature) Example(name string, fn func(t *testing.T, f *Feature))
- func (f *Feature) Given(given string, fn func())
- func (f *Feature) LogRecords() []string
- func (f *Feature) Rule(name string, fn func(t *testing.T, f *Feature))
- func (f *Feature) Scenario(name string, fn func(t *testing.T, f *Feature))
- func (f *Feature) TestCase(name string, tc interface{}, fn func(t *testing.T, f *Feature))
- func (f *Feature) TestCases(testCases interface{}, fn interface{})
- func (f *Feature) Then(then string, fn func())
- func (f *Feature) When(when string, fn func())
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Feature ¶
type Feature struct { // T should not be nil. *testing.T // contains filtered or unexported fields }
Feature of the test file.
func NewFeature ¶
NewFeature creates a new feature.
func (*Feature) Background ¶
Background defines a background block.
Notice: Background is not running for each step. Deprecated: the current template uses a new syntax.
func (*Feature) LogRecords ¶
LogRecords returns pending log records.
Click to show internal directories.
Click to hide internal directories.