videos
go-vcr
Our great sponsors
videos | go-vcr | |
---|---|---|
10 | 6 | |
93 | 1,090 | |
- | - | |
5.6 | 5.0 | |
about 2 months ago | about 1 month ago | |
Go | Go | |
MIT License | 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.
videos
- NvimTree vs NeoTree
-
Discussion: about "go install" versus brew when available
You can also do something similar with direnv for example (see 1 and 2); and even better if you use the tools.go paradigm then you can have different versions of your binaries relative to your project as well.
-
How to generate translations for multiple packages inside same module
Example for reference.
-
Go Package for testing HTTP interactions: github.com/dnaeon/go-vcr
Please refer to the full example code for more details.
-
Go Package for Mocking HTTP Traffic: github.com/h2non/gock
There's a simple CLI tool I built for requesting OpenWeather information using their API, please refer to the final repository for actually running the full examples.
-
Building Microservices in Go: Accessing PostgreSQL Databases - Part 1
The full code example mentioned in this post is available on Github, please make sure to read the README for specifics.
-
Building Microservices in Go: Caching using memcached
The code of the examples below are available on Github.
-
Go Package for Equality: github.com/google/go-cmp
Below there are some code snippets, please refer to the final repository for actually running the complete code examples.
-
Go Tools: For database schema migrations
Repository including the code example.
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
Gauge - Light weight cross-platform test automation
ginkgo - A Modern Testing Framework for Go
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