Documentation
¶
Overview ¶
Package gi runs feature files for tests, mocks, and load without a JVM.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileResult ¶
type FileResult = engine.FileResult
FileResult is the result of one feature file, including its scenarios and steps.
type Options ¶
type Options struct {
Vars map[string]any
Env string
Tags string
Jobs int
Timeout time.Duration
Client *http.Client
Output io.Writer
}
Options configures a functional run. A nil Client uses http.DefaultClient. Each scenario owns its cookie jar; the client's transport can be shared.
type ScenarioResult ¶
type ScenarioResult = engine.ScenarioResult
ScenarioResult describes one executed or skipped scenario.
type StepResult ¶
type StepResult = engine.StepResult
StepResult describes one step, including nested calls and HTTP exchanges.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
gi
command
|
|
|
examples
|
|
|
server
command
|
|
|
internal
|
|
|
adapters
Package adapters wires the native protocol and browser implementations.
|
Package adapters wires the native protocol and browser implementations. |
|
engine
HTTP dialing stays behind Sender.
|
HTTP dialing stays behind Sender. |
|
feature
Step bodies stay as text.
|
Step bodies stay as text. |
|
match
A missing key is not null.
|
A missing key is not null. |
|
mock
methodIs, pathMatches, and a failed match skip the scenario instead of failing it.
|
methodIs, pathMatches, and a failed match skip the scenario instead of failing it. |
|
script
Paths such as response.users[*].id are evaluated in Go.
|
Paths such as response.users[*].id are evaluated in Go. |
|
testutil
Package testutil contains shared helpers for repository tests.
|
Package testutil contains shared helpers for repository tests. |
|
tlsconfig
Package tlsconfig loads the PEM certificate settings shared by native transports.
|
Package tlsconfig loads the PEM certificate settings shared by native transports. |
|
value
Package value is the JSON-shaped data model shared by the script runtime and the matcher.
|
Package value is the JSON-shaped data model shared by the script runtime and the matcher. |
Click to show internal directories.
Click to hide internal directories.