Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no tests #7

Open
corpetty opened this issue Oct 15, 2019 · 2 comments
Open

no tests #7

corpetty opened this issue Oct 15, 2019 · 2 comments

Comments

@corpetty
Copy link
Owner

We need tests for each API endpoint. Thoughts on frameworks on this?

@tzapu
Copy link
Contributor

tzapu commented Oct 16, 2019

https://github.com/stretchr/testify is quite useful and they seem to recommend https://golang.org/pkg/net/http/httptest/ for http specific tests

@tzapu
Copy link
Contributor

tzapu commented Oct 16, 2019

i am also a big fan of using golden files for more complicated testst
https://medium.com/soon-london/testing-with-golden-files-in-go-7fccc71c43d3

(and table tests ofc)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants