gin-gonic / examples

A repository to host examples and tutorials for Gin.

Home Page:https://gin-gonic.com/docs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add tests

hugohabicht01 opened this issue · comments

I just tried to get started with gin and I am struggling a bit with unit testing my sample app. Would it be possible to add a example with tests so that I can see how to properly test gin applications?

That isnt really explaining anything at all. I think everybody will be able to test a "ping pong route" by himself. I am more looking for some testing of a little rest api and not just one route with always the same output....

You can see the more example in https://github.com/appleboy/gofight