Documentation ¶
Overview ¶
Package scenarigo provides end-to-end scenario testing framework for APIs. It loads YAML files as scenarios and executes them.
Index ¶
- func RunScenario(ctx *context.Context, s *schema.Scenario) *context.Context
- func WithConfig(config *schema.Config) func(*Runner) error
- func WithOptionsFromEnv(isEnv bool) func(*Runner) error
- func WithPluginDir(path string) func(*Runner) error
- func WithScenarios(paths ...string) func(*Runner) error
- func WithScenariosFromReader(readers ...io.Reader) func(*Runner) error
- type Runner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunScenario ¶ added in v0.6.0
RunScenario runs a test scenario s.
func WithConfig ¶ added in v0.7.0
WithConfig returns a option which sets configuration.
func WithOptionsFromEnv ¶ added in v0.3.0
WithOptionsFromEnv returns a option which sets flag whether accepts configuration from ENV. Currently Available ENV variables are the following. - SCENARIGO_COLOR=(1|true|TRUE) nolint:stylecheck
func WithPluginDir ¶
WithPluginDir returns a option which sets plugin root directory.
func WithScenarios ¶
WithScenarios returns a option which finds and sets test scenario files.
Types ¶
Directories ¶
Path | Synopsis |
---|---|
Package assert provides value assertions.
|
Package assert provides value assertions. |
cmd
|
|
Package context provides the test context of scenarigo.
|
Package context provides the test context of scenarigo. |
examples
|
|
secrets/plugin/src
Module
|
|
internal
|
|
Package protocol provides defines APIs of protocol.
|
Package protocol provides defines APIs of protocol. |
query
|
|
Package reporter provides test result reporters.
|
Package reporter provides test result reporters. |
Package schema provides the test scenario data schema for scenarigo.
|
Package schema provides the test scenario data schema for scenarigo. |
scripts
|
|
cross-build
Module
|
|
Package template implements data-driven templates for generating a value.
|
Package template implements data-driven templates for generating a value. |
ast
Package ast declares the types used to represent syntax trees.
|
Package ast declares the types used to represent syntax trees. |
parser
Package parser implements a parser for a template string.
|
Package parser implements a parser for a template string. |
token
Package token defines constants representing the lexical tokens.
|
Package token defines constants representing the lexical tokens. |
Click to show internal directories.
Click to hide internal directories.