Go unit-testing

Open-source Go projects categorized as unit-testing

Top 13 Go unit-testing Projects

unit-testing
  1. chromedp

    A faster, simpler way to drive browsers supporting the Chrome DevTools Protocol.

    Project mention: Rustify some puppeteer code | dev.to | 2024-06-27

    To my surprise the code was closer in structure to the puppeteer version than it was to the chromedp. The chromedp version uses nested context declarations to manage the browser and page runtimes, the rust version uses a more linear approach. You construct a browser instance and then you can interact with it as a user would. This points at the fact that the chromiumoxide api is higher level.

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. keploy

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

    Project mention: eBPF for TLS Traffic Tracing: Secure & Efficient Observability | dev.to | 2025-01-10

    Keploy, a modern API testing platform, which leverages eBPF (Extended Berkeley Packet Filter) to efficiently trace TLS (Transport Layer Security) traffic. This approach addresses the challenges of monitoring encrypted data streams without compromising performance or security.

  4. dockertest

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

    Project mention: Testcontainers | news.ycombinator.com | 2024-02-27

    I am using https://github.com/ory/dockertest for tests, specifically for databases. Is there any advantage to use Testcontainers?

  5. service-pattern-go

    Simple clean Go REST API architecture with dependency injection and mocking example, following SOLID principles.

  6. testza

    Full-featured test framework for Go! Assertions, fuzzing, input testing, output capturing, and much more! 🍕

  7. got

    An enjoyable golang test framework. (by ysmood)

  8. test-at-scale

    TAS is an intelligent test execution platform for engineering teams to achieve high development velocity.

  9. go-snaps

    Jest-like snapshot testing in Go 📸

  10. dbcleaner

    Clean database for testing, inspired by database_cleaner for Ruby

  11. err2

    Automatic and modern error handling package for Go

  12. golang-table-tests-with-testify-mock

    This repo shows how to test and mock multiple dependencies using table-driven tests with testify-mock in Golang

  13. hottest

    hottest - user-friendly 'go test' that extracts error messages.

  14. go-testpredicate

    Unit-testing predicates for Go.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Go unit-testing discussion

Log in or Post with

Go unit-testing related posts

  • Mocking database or use a test database

    5 projects | /r/golang | 18 Apr 2022
  • Unit Testing in Golang

    1 project | /r/golang | 1 Feb 2021

Index

What are some of the best open-source unit-testing projects in Go? This list will help you:

# Project Stars
1 chromedp 11,273
2 keploy 5,248
3 dockertest 4,220
4 service-pattern-go 858
5 testza 418
6 got 265
7 test-at-scale 231
8 go-snaps 181
9 dbcleaner 161
10 err2 69
11 golang-table-tests-with-testify-mock 14
12 hottest 9
13 go-testpredicate 5

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com