Versions in this module Expand all Collapse all v0 v0.15.0 Feb 21, 2023 v0.15.0-rc.3 Feb 11, 2023 v0.15.0-rc.2 Feb 10, 2023 v0.15.0-rc.1 Feb 5, 2023 v0.14.0 Jan 14, 2022 v0.14.0-rc.3 Jan 5, 2022 v0.14.0-rc.2 Jan 2, 2022 v0.14.0-rc.1 Jan 2, 2022 v0.13.0 Nov 13, 2021 v0.13.0-rc.1 Nov 2, 2021 v0.12.0 Mar 23, 2021 Changes in this version + var DefaultTracker = &Tracker + type BehaviorDriven struct + func New(t *testing.T, junitFile string, step bool) *BehaviorDriven + func (b *BehaviorDriven) Describe(name string, fn func(s *Scenario)) + func (b *BehaviorDriven) Execute(format string) + type Case struct + Name string + func NewCase(t *testing.T, s *Scenario, name string, depth int, fn, before, after *hook, ...) *Case + type HTTPMatcher struct + func (m *HTTPMatcher) LastResponse() *HttpResponse + func (m *HTTPMatcher) ResetConnection() + func (m *HTTPMatcher) SetLastResponse(res *http.Response, err error) + func (m *HTTPMatcher) StatusCode(code int, msgAndArgs ...interface{}) + type HttpResponse struct + func (h *HttpResponse) FindCookie(name string) *http.Cookie + type JUnitMessage struct + Message string + type JUnitProperty struct + Name string + Value string + type JUnitStderr struct + Text string + XMLName xml.Name + type JUnitStdout struct + Text string + XMLName xml.Name + type JUnitTestCase struct + Assertions int + ClassName string + Error *JUnitMessage + Failure *JUnitMessage + Name string + Skipped *JUnitMessage + Status string + Stderr *JUnitStderr + Stdout *JUnitStdout + Time int + XMLName xml.Name + type JUnitTestSuite struct + Disabled int + Errors int + Failures int + Hostname string + Name string + Properties []JUnitProperty + TestCases []JUnitTestCase + Tests int + Time int + Timestamp string + XMLName xml.Name + type JUnitTestSuites struct + Disabled int + Errors int + Failures int + Name string + TestSuites []JUnitTestSuite + Tests int + Time int + XMLName xml.Name + func NewJUnitTestSuites(tracker *Tracker) *JUnitTestSuites + type Matcher struct + T testingT + func NewMatcher(t *testing.T, route string) *Matcher + func (m *Matcher) Contains(s, contains interface{}, msgAndArgs ...interface{}) + func (m *Matcher) Done() + func (m *Matcher) Empty(object interface{}, msgAndArgs ...interface{}) + func (m *Matcher) Equal(expected, actual interface{}, msgAndArgs ...interface{}) + func (m *Matcher) Fail(msg ...string) + func (m *Matcher) Failed() bool + func (m *Matcher) Failf(format string, args ...interface{}) + func (m *Matcher) False(value bool, msgAndArgs ...interface{}) + func (m *Matcher) FileExists(path string, msgANdArgs ...interface{}) + func (m *Matcher) Len(object interface{}, len int, msgAndArgs ...interface{}) + func (m *Matcher) Log(msg string) + func (m *Matcher) Logf(format string, args ...interface{}) + func (m *Matcher) Must(err error) bool + func (m *Matcher) NoError(err error, msg ...string) + func (m *Matcher) NotEmpty(object interface{}, msgAndArgs ...interface{}) + func (m *Matcher) NotNil(object interface{}, msg ...string) + func (m *Matcher) True(value bool, msgAndArgs ...interface{}) + type MockServer struct + Port int + func NewMockServer() (*MockServer, error) + func (s *MockServer) Requests() []*http.Request + func (s *MockServer) Start() error + func (s *MockServer) Stop() error + type MockTCPServer struct + Port int + func NewMockTCPServer() (*MockTCPServer, error) + func (s *MockTCPServer) Start() error + func (s *MockTCPServer) Stop() error + type Scenario struct + Name string + func NewScenario(t *testing.T, parent *Scenario, name string, depth int, fn func(s *Scenario), ...) *Scenario + func (f *Scenario) AfterAll(fn func(m *Matcher)) + func (f *Scenario) AfterEach(fn func(m *Matcher)) + func (f *Scenario) BeforeAll(fn func(m *Matcher)) + func (f *Scenario) BeforeEach(fn func(m *Matcher)) + func (f *Scenario) Context(name string, fn func(s *Scenario)) + func (f *Scenario) Defer(fn func()) + func (f *Scenario) It(name string, fn func(m *Matcher)) + func (f *Scenario) SAfterAll(fn func(m *Matcher)) + func (f *Scenario) SAfterEach(fn func(m *Matcher)) + func (f *Scenario) SBeforeAll(fn func(m *Matcher)) + func (f *Scenario) SBeforeEach(fn func(m *Matcher)) + func (f *Scenario) SSubject(fn func(m *Matcher)) + func (f *Scenario) Step(name string, fn func(s *Scenario)) + func (f *Scenario) Subject(fn func(m *Matcher)) + type Tracker struct + Suites []*testSuite + func (t *Tracker) Save(path string) v0.12.0-rc.4 Mar 21, 2021 v0.12.0-rc.3 Mar 20, 2021 v0.12.0-rc.2 Mar 19, 2021 v0.12.0-rc.1 Mar 19, 2021