Go Assertions

Open-source Go projects categorized as Assertions

Top 9 Go Assertion Projects

  • Testify

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

    Project mention: Golang, GraphQL y Postgress | reddit.com/r/devsarg | 2023-01-26

    Como herramientas te recomiendo: FastJson https://github.com/valyala/fastjson : Si necesitas leer jsons Testify https://github.com/stretchr/testify : Para mockear y testear

  • httpexpect

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

    Project mention: Best packages? | reddit.com/r/golang | 2022-10-16

    httpexpect for testing HTTP services. Works great with both RESTful and GraphQL.

  • InfluxDB

    Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Platform where developers build real-time applications for analytics, IoT and cloud-native services. Easy to start, it is available in the cloud or on-premises.

  • gock

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

    Project mention: Testing calls to external APIs | reddit.com/r/golang | 2022-12-09

    Mocking the http client with explicit responses; for example using h2non/gock

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

    Project mention: How do you do DB preparation in e2e tests? | reddit.com/r/golang | 2022-10-20

    Assertion libraries that people seem to love: - testify (my favorite) - go-cmp is a more barebones library - gotest.tools -- I have never used this but some swear by it

  • go-testdeep

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

    Project mention: Working with JSON in Go: A Comprehensive Guide | reddit.com/r/golang | 2023-01-05

    And do not forget to use go-testdeep and its JSON operator to test JSON content: :)

  • jsonassert

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

  • SonarLint

    Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.

  • trial

    A simple assertion library for go (by jgroeneveld)

  • 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). The latest post mention was on 2023-01-26.

Go Assertions related posts

Index

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

Project Stars
1 Testify 18,763
2 httpexpect 2,091
3 gock 1,784
4 quicktest 451
5 gotest.tools 391
6 go-testdeep 340
7 jsonassert 102
8 trial 6
9 attest 0
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com