Go Assertions

Open-source Go projects categorized as Assertions

Top 13 Go Assertion Projects

  • Testify

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

    Project mention: Why I don't use a third-party assertion library in Go unit tests | dev.to | 2024-05-20

    Of course, as soon as people saw this, the third-party assertion helper libraries started appearing. The most popular one seems to be testify (although I've never used it). Personally, I thought that the explicit check would be good enough for me, but it's true that after writing a bunch of tests, the boilerplate does seem unnecessarily verbose.

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

    End-to-end HTTP and REST API testing for Go.

    Project mention: FLaNK Stack Weekly for 07August2023 | dev.to | 2023-08-07
  • gock

    HTTP traffic mocking and testing made easy in Go ༼ʘ̚ل͜ʘ̚༽

  • quicktest

    Quick helpers for testing Go applications (by frankban)

  • gotest.tools

    A collection of packages to augment the go testing package and support common patterns.

  • go-testdeep

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

  • test

    A modern generic testing assertions library for Go (by shoenig)

  • SaaSHub

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

    SaaSHub logo
  • jsonassert

    A Go test assertion library for verifying that two representations of JSON are semantically equal (by kinbiko)

  • verify

    Extensible, type-safe, fluent assertion Go library. (by fluentassert)

  • probe

    Simplified End-to-End Testing Using YAML and JQ. (by abhimanyu003)

  • trial

    A simple assertion library for go (by jgroeneveld)

  • must

    When you don't need error handling (by xiegeo)

  • attest

    A small library to make go tests more readable. (by dscottboggs)

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 Assertions discussion

Log in or Post with

Go Assertions related posts

  • Why I don't use a third-party assertion library in Go unit tests

    1 project | dev.to | 20 May 2024
  • Testing calls to Daily's REST API in Go

    2 projects | dev.to | 8 Sep 2023
  • Do you wrap testing libraries?

    1 project | /r/golang | 16 May 2023
  • [Go] How to unit test for exception handling?

    1 project | /r/learnprogramming | 19 Apr 2023
  • Introdução aos testes unitários em Go

    1 project | dev.to | 13 Jan 2023
  • How do you do DB preparation in e2e tests?

    3 projects | /r/golang | 20 Oct 2022
  • I don't understand popularity of a table driven tests approach

    2 projects | /r/golang | 23 Jul 2022
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 17 Jul 2024
    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. Learn more →

Index

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

Project Stars
1 Testify 22,531
2 httpexpect 2,503
3 gock 2,045
4 quicktest 524
5 gotest.tools 500
6 go-testdeep 425
7 test 145
8 jsonassert 121
9 verify 40
10 probe 29
11 trial 6
12 must 5
13 attest 0

Sponsored
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.
www.influxdata.com

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