Documentation
¶
Overview ¶
Package steps holds the Godog step definitions for phpbotscout's E2E behaviour tests.
The scenarios describe the transport as an operator experiences it — what it watches, what it refuses, what it says, and how it survives the gateway going away — and run against a fake platform client rather than Discord. The behaviour under test is the bot's, not the gateway's; the gateway has its own regression tests upstream.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrScenario = errors.NewSentinel("e2e.scenario", "scenario")
ErrScenario is the root of every scenario failure. Step definitions report assertions rather than returning values a caller branches on, so one sentinel carrying the detail is both what the linter wants and what reads best in a Godog report.
Functions ¶
func Register ¶
func Register(sc *godog.ScenarioContext)
Register wires the step definitions into a Godog suite.
func RegisterAnswering ¶ added in v0.5.0
func RegisterAnswering(sc *godog.ScenarioContext)
RegisterAnswering wires the answering step definitions.
func RegisterForget ¶ added in v0.13.0
func RegisterForget(sc *godog.ScenarioContext)
RegisterForget wires the forget step definitions (spec 0032).
func RegisterMessaging ¶ added in v0.5.0
func RegisterMessaging(sc *godog.ScenarioContext)
RegisterMessaging wires the messaging step definitions.
Phrased around "the gateway" and "the subscriber" where the ingest scenarios say "the service", because one registry is shared and an identically phrased step would silently bind to whichever registered last.
func RegisterRefresh ¶
func RegisterRefresh(sc *godog.ScenarioContext)
RegisterRefresh wires the refresh step definitions into a Godog suite.
func RegisterReview ¶ added in v0.6.0
func RegisterReview(sc *godog.ScenarioContext)
RegisterReview wires the review step definitions (spec 0023).
Types ¶
This section is empty.