Top 23 Go Testing Projects
Learn Go with test-driven developmentProject mention: My journey to writing my blog in Go | dev.to | 2021-04-14
Go through Learn Go With Tests to learn how to test the code correctly in Go.
GoReplay is an open-source tool for capturing and replaying live HTTP traffic into a test environment in order to continuously test your system with real data. It can be used to increase confidence in code deployments, configuration changes and infrastructure changes.Project mention: GoReplay - test your system with real data | reddit.com/r/programming | 2021-09-19
Run Linux Software Faster and Safer than Linux with Unikernels.
A toolkit with common assertions and mocks that plays nicely with the standard libraryProject mention: I'm curious about developer dependencies for library projects | reddit.com/r/golang | 2021-10-16
There is a way to put codegen code in a separate folder and create a separate go.mod file there. Like stretchr did. https://github.com/stretchr/testify/tree/master/_codegen
A faster, simpler way to drive browsers supporting the Chrome DevTools Protocol.Project mention: Any packages to manage android or ios browsers? | reddit.com/r/golang | 2021-08-15
Go testing in the browser. Integrates with `go test`. Write behavioral tests in Go.Project mention: Do you prefer go-convey over golang's t.Run? | reddit.com/r/golang | 2021-04-23
For a generic usecase, do you see Go-convey adding any benefit over simple golang t.Run?
GoMock is a mocking framework for the Go programming language. (by golang)Project mention: Mocking with High-Order Functions in Go | reddit.com/r/golang | 2021-08-06
Honestly curious - why wouldn't you use something like https://github.com/golang/mock to generate your mocks from an interface. Way more productive, consistent and cleaner. Spend more time and focus on your business logic rather than something that's already been solved.
:alarm_clock: :fire: A TCP proxy to simulate network and system conditions for chaos and resiliency testingProject mention: Simulating poor network connections so you can build better systems. | reddit.com/r/programming | 2021-07-23
https://github.com/shopify/toxiproxy exists for this purpose and is quite good.
Scout APM: A developer's best friend. Try free for 14-days. Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.
Terratest is a Go library that makes it easier to write automated tests for your infrastructure code.Project mention: Testing automated deploys | reddit.com/r/Terraform | 2021-10-15
We use Terratest to do something similar. We use it within our CI/CD pipeline for testing Terraform modules before they are built and published in our registry, as well as use in a larger Terragrunt stack to perform more of an end to end test.
BDD Testing Framework for GoProject mention: Testza - A modern test framework with pretty output | reddit.com/r/golang | 2021-08-25
What are people’s thoughts on testing frameworks? I’ve heard that most devs only use the testing package in the standard library and the testify package for assertions— I assume this is because Go is meant to be lightweight and scalable, and adding external dependencies basically goes against that. But I’ve also seen devs use packages like ginkgo to make tests more structured and readable. What do you guys think?
Quick and Easy server testing/validationProject mention: How To Use Terraform like a Pro: Part 1 | dev.to | 2021-09-09
Use GOSS, a YML-based open-source tool that can assert the test results (i.e., verifying if the SSH port 22 is closed or not).
Randomized testing for Go
Realize is the #1 Golang Task Runner which enhance your workflow by automating the most common tasks and using the best performing Golang live reloading.
Golang gRPC Middlewares: interceptor chaining, auth, logging, retries and more.Project mention: gRPC best practices | reddit.com/r/golang | 2021-04-21
Example auth middleware: https://github.com/grpc-ecosystem/go-grpc-middleware/blob/master/auth/examples_test.go
Sql mock driver for golang to test database interactionsProject mention: Go Package for better integration tests: github.com/ory/dockertest | dev.to | 2021-04-23
We have different ways to write our tests depending on what datastore we are using, for example if we are testing database calls that happen to be using database/sql then importing a package like github.com/DATA-DOG/go-sqlmock could work.
Automatically generate Go test boilerplate from your source code.Project mention: ¿Como estructurar tu aplicación en Go? | dev.to | 2021-05-09
A mock code autogenerator for Golang (by vektra)Project mention: mockcompose to generate mocking implementation for Go classes, interfaces and functions | reddit.com/r/golang | 2021-07-06
As a Go newbie, the on-boarding process to Golang went relatively smoothly except a small glitch when it came to search for a mocking framework to test out a Go class implementation. I was a bit surprised to realize that I was not able to find a on-shelf tool to help me mock a class method. It might be an edge case scenario that I wanted to mock a class method, but I do believe that this is a valid use case, so I went ahead to spend a weekend building such a tool: mockcompose. It was originally aimed to just solve this one particular use case, therefore, it had to be used together with mockery (one of the great tools I found during my search in the period). I later refined the tool to cover mocking code generation for Go interfaces and functions, mockcompose can now be used in most of Go unit test scenarios. Please check it out and give it a try, I hope the tool is useful, feel free to drop your feedback and share with your opinion there.
Light weight cross-platform test automationProject mention: 9 Of The Best Java Testing Frameworks For 2021 | dev.to | 2021-05-14
Gauge is a Behavior Driven Java testing framework launched by ThoughtWorks.Inc. This is also one of the best Java Testing Frameworks, which allows software engineers to develop automated frameworks and speed up the software development procedure.
Package for comparing Go values in testsProject mention: Migrating from PHP to Go | reddit.com/r/golang | 2021-09-30
Checking for equality in tests: https://github.com/google/go-cmp
Selenium Hub successor running browsers within containers. Scalable, immutable, self hosted Selenium-Grid on any platform with single binary.
Write tests against structured configuration data using the Open Policy Agent Rego query languageProject mention: Don't let your Terraform go rogue with Conftest and the Open Policy Agent | dev.to | 2021-06-25
Insert Conftest! As they state in their GitHub description, Conftest tests against structured configuration data using the Open Policy Agent Rego query language. In the case of Terraform, this means we're actually running unit tests against sample JSON and actual tests against the Terraform state JSON.
A Devtools driver for web automation and scrapingProject mention: Mastering Web Scraping in Python: Crawling from Scratch | news.ycombinator.com | 2021-08-11
If performance, Especially concurrency matters then we should include Go based libraries in the discussion as well.
Colly is a all batteries included scrapping library, But could be bit intimidating for someone new to HTML scrapping.
rod  is a browser automation library based on DevTools Protocol which adheres to Go'ish way of doing things and so it's very intuitive but comes with overhead of running chromium browser even if its headless.
End-to-end HTTP and REST API testing for Go.
Lightweight service virtualization/API simulation tool for developers and testers
What are some of the best open-source Testing projects in Go? This list will help you:
Are you hiring? Post a new remote job listing for free.