Testing frameworks, which to use?

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

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • ginkgo

    A Modern Testing Framework for Go

  • If you like BDD and more expressive tests, go get ginkgo. It is a pain in the back get the hang of its R-spec like syntax, but if you're good at it and you like it, it is very expressive and readable. It has its own matcher (assertions library), gomega, but if you don't like it, you can still use testify instead.

  • Testify

    A toolkit with common assertions and mocks that plays nicely with the standard library

  • If you are working on a enterprise-grade product, testify can really ease the pain of organizing test suites, assertions and mocks. It's simply adds sugar syntax helper functions so overall structure of your tests it's still std lib like.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • is

    Professional lightweight testing mini-framework for Go.

  • testify off steroids, all you ever need: is

  • keploy

    Test generation for Developers. Generate tests and stubs for your application that actually work!

  • If you are testing API or web service, you can try keploy - https://github.com/keploy/keploy

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