AyushSahu77 / Keploy-GoGinMongo-Project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GoLang CRUD operation App ๐Ÿš€

Using Gin - Gonic framework, MongoDB Atlas & Keploy for testing ๐Ÿ‘€

  • โœจBy Ayush Sahuโœจ

  • Star๐ŸŒŸ this repository and fork๐Ÿด to save it to your repos for easy access.

Connect with me : LinkedIn Twitter

Running keploy in record mode to capture test cases

export KEPLOY_MODE=record
go run main.go

Preview of the project running ๐Ÿš€ :

Screenshot 2023-03-07 at 3 33 20 PM

Preview of Keploy capturing test cases ๐Ÿ” :

Screenshot 2023-03-07 at 3 32 41 PM

Running keploy in test mode to get test coverage

export KEPLOY_MODE="test"
go test -v -coverpkg=./... -covermode=atomic  ./...

Preview of automatic testing with keploy ๐Ÿ”ฅ :

Screenshot 2023-03-07 at 3 33 36 PM

Screenshot 2023-03-07 at 3 32 46 PM

So cool! ๐Ÿ˜Ž

P.s. Got less coverage as I didn't capture all functionality (CRUD) of the app.

Used API testing platform : Postman 10.11.1

Used IDE : Visual Studio Code 1.76.0

OS : MacOS Ventura 13.2

Download Visual Studio Code on your machine at VScode

For more info visit official Keploy documentation here Keploy-Offical

About


Languages

Language:Go 100.0%