testcase
go-vcr
Our great sponsors
testcase | go-vcr | |
---|---|---|
14 | 6 | |
115 | 1,087 | |
- | - | |
6.6 | 5.0 | |
22 days ago | 15 days ago | |
Go | Go | |
Apache License 2.0 | BSD 2-clause "Simplified" License |
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.
testcase
-
Read/Write FileSystem header interface for dependency injection
If you like test-driven design, check out my testing framework. https://pkg.go.dev/github.com/adamluzsi/testcase https://github.com/adamluzsi/testcase
-
The Big List of Naughty Strings is incorporated into the testcase's random generator. (v0.71.0)
refs: - https://github.com/adamluzsi/testcase/releases/tag/v0.71.0 - https://github.com/minimaxir/big-list-of-naughty-strings
-
(: yet another assertion library, this time in the testcase testing framework
In the testcase testing framework, I mostly used github.com/stretchr/testify for the assertions, and everywhere where I work with the testing framework. Most of the time, I barely use the full potential of testify, just some basic assertations like Contains and Equal. I decided to ship these basic assertions within the testing framework, so when I don't need heavy lifting with a full-fledged assertion library, I don't need to import one.
go-vcr
-
Testing calls to external APIs
Mocking the http client using recorded responses; for example using dnaeon/go-vcr
-
How I write offline API tests in Go
For example I see go-vcr (note: not mine), but haven't taken time yet to evaluate it.
-
go-vcr v3 has been released
I've finally found some spare time and managed to work on go-vcr, fixed some long standing issues, refactored things here and there and was able to get a new version of the package.
-
What are you using for testing your IAC?
Terraform providers are tested this way (separate cloud account w/ create/destroy) paired with VCR to record and replay the HTTP requests.
-
Go Package for testing HTTP interactions: github.com/dnaeon/go-vcr
Let me introduce to you github.com/dnaeon/go-vcr.
-
best way to mock/unit test http.Client?
dnaeon/go-vcr
What are some alternatives?
testfixtures - Ruby on Rails like test fixtures for Go. Write tests against a real database
ginkgo - A Modern Testing Framework for Go
Gauge - Light weight cross-platform test automation
gofight - Testing API Handler written in Golang.
gomega - Ginkgo's Preferred Matcher Library
httpmock - HTTP mocking for Golang
frisby - API testing framework inspired by frisby-js
GoAws - AWS (SQS/SNS) Clone for Development testing
embedded-postgres - Run a real Postgres database locally on Linux, OSX or Windows as part of another Go application or test
go-mutesting - Mutation testing for Go source code
realize - 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.
baloo - Expressive end-to-end HTTP API testing made easy in Go