Patterns for unit testing in Go?

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

InfluxDB - Purpose built for real-time analytics at any scale.
InfluxDB Platform is powered by columnar analytics, optimized for cost-efficient storage, and built with open data standards.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • gotests

    Automatically generate Go test boilerplate from your source code.

    I use https://github.com/cweill/gotests to generate the test scaffolding.

  • InfluxDB

    Purpose built for real-time analytics at any scale. InfluxDB Platform is powered by columnar analytics, optimized for cost-efficient storage, and built with open data standards.

    InfluxDB logo
  • go-testdeep

    Extremely flexible golang deep comparison, extends the go testing package, tests HTTP APIs and provides tests suite

    Check go-testdeep using its operators, it is very easy to do table driven tests, see https://goplay.space/#Z91D72aH3Sc for an example

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

  • New version of minimal test helper "be" with golden file support

    1 project | /r/golang | 2 Jun 2023
  • Gocrest v1.1.0 released

    1 project | /r/golang | 1 Apr 2023
  • GoCrest v1.0.8 released

    1 project | /r/golang | 24 Mar 2023
  • Go: HTTP Integration Test Framework

    1 project | news.ycombinator.com | 6 Mar 2023
  • Golang, GraphQL y Postgress

    2 projects | /r/devsarg | 26 Jan 2023

Did you konow that Go is
the 4th most popular programming language
based on number of metions?