gokka
go-github-mock
gokka | go-github-mock | |
---|---|---|
1 | 1 | |
3 | 90 | |
- | - | |
0.0 | 6.6 | |
over 1 year ago | about 2 months ago | |
Go | Go | |
- | MIT 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.
gokka
go-github-mock
-
Building GitHub Apps with Golang
So far we've been testing the app with localtunnel, which is nice for quick ad-hoc tests against live API, but it doesn't replace proper unit tests. To write unit tests for this app, we need to mock-out the API to avoid being dependent on the external service. To do so, we can use go-github-mock:
What are some alternatives?
testcase - testcase is an opinionated testing framework to support test driven design.
go-github-app - Template for building GitHub Apps in Go.
mockc - Completely type-safe compile-time mock generator for Go
apps
testing-go-code-with-postgres - The example suggests a solution to the problem of cleaning the database after running tests and the problem of running tests in parallel. It also shows how to organize integration testing of Go code with Postgres.
hoverfly - Lightweight service virtualization/ API simulation / API mocking tool for developers and testers
cue - The home of the CUE language! Validate and define text-based and dynamic configuration
Testify - A toolkit with common assertions and mocks that plays nicely with the standard library
mockit - Library that make mocking of Go functions/methods easy
JSON-to-Go - Translates JSON into a Go type in your browser instantly (original)