HTTP traffic mocking and testing made easy in Go ༼ʘ̚ل͜ʘ̚༽ (by h2non)


Basic gock repo stats
about 2 months ago

h2non/gock is an open source project licensed under MIT License which is an OSI approved license.

Gock Alternatives

Similar projects and alternatives to gock based on common topics and language

  • GitHub repo drone

    Drone is a Container-Native, Continuous Delivery Platform

  • GitHub repo gaia

    Build powerful pipelines in any programming language.

  • GitHub repo httpmock

    HTTP mocking for Golang

  • GitHub repo go-vcr

    Record and replay your HTTP interactions for fast, deterministic and accurate tests

  • GitHub repo videos

    Slides and examples used for my training videos (by MarioCarrion)

  • GitHub repo mockit

    Library that make mocking of Go functions/methods easy (by pasdam)

  • GitHub repo hoverfly

    Lightweight service virtualization/API simulation tool for developers and testers

NOTE: The number of mentions on this list indicates mentions on common posts. Hence, a higher number means a better gock alternative or higher similarity.


Posts where gock has been mentioned. We have used some of these posts to build our list of alternatives and similar projects - the last one was on 2021-04-16.
  • Go Package for Mocking HTTP Traffic: github.com/h2non/gock
    dev.to | 2021-04-16
    Last time I covered testing in Go I mentioned a package used for testing equality called github.com/google/go-cmp, this time I will share with you a way to mock HTTP traffic using the package github.com/h2non/gock.
  • HTTP mocking
    reddit.com/r/golang | 2021-03-20
    If you need a good library for mocking http servers https://github.com/h2non/gock does a great job.
  • best way to mock/unit test http.Client?
    reddit.com/r/golang | 2021-03-15
  • How to mock `jwk.Fetch` in my unit tests?
    reddit.com/r/golang | 2021-03-02
  • Has anyone here compiled DroneCI from scratch?
    reddit.com/r/devops | 2021-01-03