Skip to content

Releases

v0.6.0

Choose a tag to compare

@nicandcranny nicandcranny released this 16 Sep 14:18
  • Bump Go version
  • Add InFlight and WaitUntilIdle function

Full Changelog: v0.5.0...v0.6.0

v0.5.0

Choose a tag to compare

@nicandcranny nicandcranny released this 16 Sep 10:08

Add Keyed mode

  • Simple mode — one handler per route. Perfect for a single test (or a
    sequential suite): register a handler, make the request, assert the calls.
    This is also perfect for static endpoint that always returns the same result
    in every test.
    Use RegisterHandler, GetNCalls, GetCalls, ResetCalls.
  • Keyed mode — one route, many per-request buckets. Use this when you want to
    run tests in parallel against the same route and return a different response
    for different requests
    . Each request is routed to a bucket by a key you
    derive from the request (e.g. a user id, a client id, a channel), so each
    parallel test owns its own handler and its own recorded calls with no
    cross-test interference. Use RegisterKeyedRoute + RegisterKeyedHandler,
    GetNCallsByKey, GetCallsByKey, ResetCallsByKey.
Simple mode (single test) Keyed mode (parallel-safe)
RegisterHandler RegisterKeyedRoute + RegisterKeyedHandler
GetNCalls(method, path) GetNCallsByKey(method, path, key)
GetCalls(method, path) GetCallsByKey(method, path, key)
ResetCalls() (all buckets) ResetCallsByKey(method, path, key)

Full Changelog: v0.4.0...v0.5.0

v0.4.0

Choose a tag to compare

@nicandcranny nicandcranny released this 11 Jan 09:50

Add simplified response function, e.g. w.JSON(http.StatusOk, resBody)

Full Changelog: v0.3.0...v0.4.0

v0.3.0

Choose a tag to compare

@nicandcranny nicandcranny released this 11 Jan 04:37
  • Migrate to use echo to optimize the re-register handler logic
  • Add log capability
  • Minor bug fix

Full Changelog: v0.2.0...v0.3.0

v0.2.0

Choose a tag to compare

@nicandcranny nicandcranny released this 18 Mar 08:38
  • Add request storer
  • Use gin

Full Changelog: v0.1.3...v0.2.0

Fix Race Condition on Increment N Calls

Choose a tag to compare

@nicandcranny nicandcranny released this 22 Apr 10:13

Full Changelog: v0.1.2...v0.1.3

v0.1.2

Choose a tag to compare

@nicandcranny nicandcranny released this 04 Apr 17:21

Fix register handler bug

Full Changelog: v0.1.1...v0.1.2

v0.1.1

Choose a tag to compare

@nicandcranny nicandcranny released this 21 Feb 12:12

Add Mutex

Full Changelog: v0.1.0...v0.1.1

v0.1.0

Choose a tag to compare

@nicandcranny nicandcranny released this 20 Feb 17:01

Changes

Update to use default http handler.

Full Changelog: v0.0.3...v0.1.0

v0.0.3

Choose a tag to compare

@nicandcranny nicandcranny released this 18 Aug 08:59
e7b884f

Full Changelog: v0.0.2...v0.0.3