Top 23 Go Testing Projects
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.Latest mention: How To Find Performance Issues Before Deploying | reddit.com/r/sre | 2020-12-29
Not OP, but that is the idea. I use this tool for it, as it is dead-simple to get running and fairly configurable: https://github.com/buger/goreplay
Learn Go with test-driven developmentLatest mention: I'm Learning Go and I've made a Learning List | reddit.com/r/golang | 2021-01-17
Learn Go with Tests should be higher on the list. I'd do this after finishing A Tour of Go.
A toolkit with common assertions and mocks that plays nicely with the standard libraryLatest mention: Go, RabbitMQ and gRPC Clean Architecture microservice 💫👋 | dev.to | 2021-01-11
Code for another gRPC methods and some tests you can find in th repository. For testing and mocking i can recomend testify and gomock.
Go testing in the browser. Integrates with `go test`. Write behavioral tests in Go.
A faster, simpler way to drive browsers supporting the Chrome DevTools Protocol.Latest mention: I want to make a request based bot. | reddit.com/r/golang | 2021-01-13
The built in Go HTTP package is more than capable at sending off the HTTP requests you need. I have some articles on my blog that teach you how to use the chrome dev tools to spot requests to mimic. If the site you're automating has TLS fingerprinting you may want to take a look at uTLS to mimic the fingerprint of popular modern browsers. If the request route is proving to be too much work you can use chromedp which allows you to control Chrome. Hope this helps
GoMock is a mocking framework for the Go programming language.Latest mention: Perl - mockgen helper perl script | dev.to | 2021-01-25
:alarm_clock: :fire: A TCP proxy to simulate network and system conditions for chaos and resiliency testing
Terratest is a Go library that makes it easier to write automated tests for your infrastructure code.Latest mention: Testing in Infrastructure as Code and why Terraform may not be the best option | dev.to | 2021-01-06
You can’t use Terratest assertions with LocalStack and there is an open pull request https://github.com/gruntwork-io/terratest/pull/495 solving this issue. Of course, you could write your own assertions and we will do it later in a different language, so let’s skip this now and move on.
BDD Testing Framework for GoLatest mention: Autobucket Operator | dev.to | 2020-11-19
As a big fan of automated testing, it’s comforting to learn that we can easily write tests for our controllers using envtest (which runs a local k8s control plane so we can run our tests against it), the Gingko testing framework and the Gomega matching/assertion library:
Quick and Easy server testing/validationLatest mention: Find The Cube | dev.to | 2020-11-24
The repository is private but there is a CI/CD no-downtime deployment process. So fancy! I use goss to test the built image along with the docker/build-push-action. The end of my ci.yml GitHub Action workflow looks like this:
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.
Randomized testing for Go
Golang gRPC Middlewares: interceptor chaining, auth, logging, retries and more.Latest mention: Go, RabbitMQ and gRPC Clean Architecture microservice 💫👋 | dev.to | 2021-01-11
And initialize our gRPC service, here i used gRPC Middleware repository for unary interceptors:
Sql mock driver for golang to test database interactions
Automatically generate Go test boilerplate from your source code.
Light weight cross-platform test automation
Package for comparing Go values in tests
Selenium Hub successor running browsers within containers. Scalable, immutable, self hosted Selenium-Grid on any platform with single binary.
Lightweight service virtualization/API simulation tool for developers and testers
End-to-end HTTP and REST API testing for Go.Latest mention: Hacktoberfest: 69 Beginner-Friendly Projects You Can Contribute To | dev.to | 2020-09-29
https://github.com/gavv/httpexpect End-to-end HTTP and REST API testing for Go.
Write tests against structured configuration data using the Open Policy Agent Rego query languageLatest mention: Mental models for understanding Kubernetes Pod Security Policy PSP | reddit.com/r/kubernetes | 2021-01-16
Can Gatekeeper and Conftest single-source the same set of rules? I'm looking at https://github.com/open-policy-agent/conftest/issues/54#issuecomment-528988831 and not seeing how.
Selenium/Webdriver client for Go
A Devtools driver for web automation and scraping
What are some of the best open-source Testing projects in Go? This list will help you: