Documentation ¶
Index ¶
- func Run(t *testing.T, ctx context.Context, reqs []rq.Request, options ...Option)
- func RunDir(t *testing.T, ctx context.Context, path string, options ...Option)
- func RunFile(t *testing.T, ctx context.Context, path string, options ...Option)
- func WithVerboseLogging(opts *Options)
- type Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
Run runs all requests provided as argumentss. Each request is executed in a subtest with the name of the request and each assertion result is marked as a pass or fail in the test output. The requests are executed using the provided context. Environment variables or a shared runtime can be provided via the context.
func RunDir ¶
RunDir runs all requests from all files with a .http extension found recursively in the directory designated in the path.
func RunFile ¶
RunFile runs all requests in a file. Each requests is run in a subtest with the name of the request and each assertion result is marked as a pass or fail in the test output.
func WithVerboseLogging ¶
func WithVerboseLogging(opts *Options)
Types ¶
Click to show internal directories.
Click to hide internal directories.