Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 2.5% dependent packages on proxy.golang.org
Top 3.5% dependent repos on proxy.golang.org

proxy.golang.org : github.com/pawelWritesCode/gdutils

Package gdutils provides APIContext struct with methods that may be used for behavioral testing of HTTP API. APIContext may be initialized by two ways: First, returns *APIContext with default services: Second, more customisable returns *APIContext with provided services: No matter which way you choose, you can inject your custom services afterwards with one of available setters: Those services will be used in utility methods and can be accessed directly if needed (to use in any custom methods). For example, if you want to use your own debugger - because default one is not suitable for you, create your own struct, implement debugger.Debugger interface on it, and then inject it with "func (apiCtx *APIContext) SetDebugger(d debugger.Debugger)" method. Testing HTTP API usually consist of the following aspects: * Data generation: * Sending HTTP(s) requests: or * Assertions: * Preserving nodes: * Flow control: * Debugging: Here is example lib usage to test endpoint returning list of ducks gifs:

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/pawel%21writes%21code/gdutils
Keywords: e2e, e2e-tests, gdutils, godog, http, json, testing, xml, yaml
License: MIT
Latest release: 9 months ago
First release: about 3 years ago
Namespace: github.com/pawelWritesCode
Dependent packages: 5
Dependent repositories: 2
Stars: 0 on GitHub
Forks: 2 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 15 days ago

    Loading...
    Readme
    Loading...