gotestsum
'go test' runner with output optimized for humans, JUnit XML for CI integration, and a summary of the test results. (by gotestyourself)
gotest.tools
A collection of packages to augment the go testing package and support common patterns. (by gotestyourself)
Our great sponsors
gotestsum | gotest.tools | |
---|---|---|
8 | 2 | |
1,895 | 491 | |
3.5% | 2.0% | |
7.6 | 5.0 | |
12 days ago | 4 months ago | |
Go | Go | |
Apache License 2.0 | GNU General Public License v3.0 or later |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
gotestsum
Posts with mentions or reviews of gotestsum.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-06-06.
-
2023 update to go-recipes collection
auto instrumenting skipping tests, analysing slow tests with gotestsum: https://github.com/gotestyourself/gotestsum
- Is your makefile supposed to be a justfile?
-
Which Tools Do You use daily for Golang development?
gotestsum for watching the filesystem and run tests on save.
-
Go API Project Set-Up
The go test command does not support test reporting out of the box. To generate a test report, we have to use gotestsum to generate a JUnit report. We add gotestsum to our tools.go file:
-
I built a tool to get instant test results (<500ms)
gotestsum has a similar feature with gotestsum --watch that runs the tests for the changed package when a file is saved.
-
Looking for a test runner like pytest.
Closest I know of: https://github.com/gotestyourself/gotestsum
- Highlighting test passes, failures, and index numbers in test output
-
Learning Go by examples: part 6 - Create a gRPC app in Go
Gotestsum, what is this new tool? Go test is not enough?
gotest.tools
Posts with mentions or reviews of gotest.tools.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-10-20.
-
How do you do DB preparation in e2e tests?
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
-
Avoiding Changing Package Interfaces for Tests in Go
I've written a bit about both of these approaches in the gotest.tools wiki.
What are some alternatives?
When comparing gotestsum and gotest.tools you can also consider the following projects:
gotest - go test with colors
Testify - A toolkit with common assertions and mocks that plays nicely with the standard library
kutego-api - KuteGo is an API to play with cute Aurélie's Gophers
ginkgo - A Modern Testing Framework for Go
gomega - Ginkgo's Preferred Matcher Library
is - Professional lightweight testing mini-framework for Go.
spok - It's a build system Jim, but not as we know it đŸ––
go-cmp - Package for comparing Go values in tests
go - The Go programming language
goc - A Comprehensive Coverage Testing System for The Go Programming Language
mage - a Make/rake-like dev tool using Go
goblin - Minimal and Beautiful Go testing framework