goc
go-internal
Our great sponsors
goc | go-internal | |
---|---|---|
1 | 3 | |
769 | 796 | |
2.2% | - | |
3.7 | 5.5 | |
8 days ago | 12 days ago | |
Go | Go | |
Apache License 2.0 | BSD 3-clause "New" or "Revised" 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.
goc
-
Code coverage for Go integration tests
A few years ago, I used goc to collect coverage from multiple services at the same time when they were used in E2E tests. I was very happy with it. Check it out!
https://github.com/qiniu/goc
go-internal
-
Ask HN: Good language-agnostic test suites?
The Go compiler has a really interesting, black box testing tool called "testscript"
You can find an extracted, installable version here: https://github.com/rogpeppe/go-internal/tree/master/cmd/test...
For test cases, I would look to libraries in any language that has them in an easy to copy format
-
Code coverage for Go integration tests
No idea if the technique was original, it’s been too long, but I wrote about it on the Cloudflare blog in 2016. https://blog.cloudflare.com/go-coverage-with-external-tests/
Anyway, very happy to see the team ship first class support for it. It immediately made coverage support in testscript much more natural, too. https://github.com/rogpeppe/go-internal/pull/201
-
testscript, a hidden gem the Go team kept locked away
Thank you very much to Russ Cox for the original concept of testscript, to Roger Peppe for maintaining go-internal, and the whole Go team for their work on Go and its excellent tooling. Your work and efforts are truly appreciated!
What are some alternatives?
embedded-postgres - Run a real Postgres database locally on Linux, OSX or Windows as part of another Go application or test
limgo - Simple tool to ensure the test coverage does not fall below a limit
GoAws - AWS (SQS/SNS) Clone for Development testing
Encore - Encore is the Backend Development Platform purpose-built to help you create event-driven and distributed systems.
frisby - API testing framework inspired by frisby-js
go - The Go programming language
covergates - The portal gates to coverage reports
datastation - App to easily query, script, and visualize data from every database, file, and API.
baloo - Expressive end-to-end HTTP API testing made easy in Go
rust-coverage-integration-test - end-to-end integration-test tool for rust that supports local/hosted coverage
dsunit - Datastore Testibility
Testify - A toolkit with common assertions and mocks that plays nicely with the standard library