Flexible mocking for testing in Go (without using a framework)

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/golang

Our great sponsors
  • SonarQube - Static code analysis for 29 languages.
  • Scout APM - Less time debugging, more time building
  • SaaSHub - Software Alternatives and Reviews
  • Not sure if I missed something in the article, but why not use https://github.com/maxbrunsfeld/counterfeiters for example?

  • counterfeiter

    A tool for generating self-contained, type-safe test doubles in go

    Correct link is https://github.com/maxbrunsfeld/counterfeiter for those interested

  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.

  • gomock

    GoMock is a mocking framework for the Go programming language. (by golang)

    BTW https://github.com/golang/mock is way more propular and does similar things.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts