github.com/pawelWritesCode/gdutils (go): 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:
Keywords: e2e|e2e-tests|gdutils|godog|http|json|testing|xml|yaml