Is that a unit test a.k.a how do you test your API endpoints?

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
  • dockertest

    Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work.

  • You can use a library like dockertest to spin up a real database instance for just testing the repository. Would be closer to an integration test but better than no tests.

  • go-hit

    http integration test framework

  • I mostly just do integration tests, meaning spinning up the whole service utilizing testcontainers-go for postgres/redis. My main.go file is small and I just start the service in the test code and test using my integration test framework (https://github.com/Eun/go-hit).

  • 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
  • pact-workshop-go

    Golang Pact workshop

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