paint-brush
Application Testing In Go: Do It Right And Don't Create a Messby@mohammed-gadiwala
540 reads
540 reads

Application Testing In Go: Do It Right And Don't Create a Mess

by Mohammed Gadiwala8mMay 4th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Using Docker, we can easily solve this problem by spawning a Docker container just to run test cases and killing it after it’s purpose is solved. No need to worry about the collateral damage done by our test cases since killing that container handles that for us. I have created a simple todo app that basically allows a user to save, fetch, and delete the item. I will be exposing the REST endpoint for all these functionalities and will be using MySQL as my database. The main file initializes services and boots up the server.

Company Mentioned

Mention Thumbnail
featured image - Application Testing In Go: Do It Right And Don't Create a Mess
Mohammed Gadiwala HackerNoon profile picture
Mohammed Gadiwala

Mohammed Gadiwala

@mohammed-gadiwala

Backend engineer | Golang

Learn More
LEARN MORE ABOUT @MOHAMMED-GADIWALA'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Mohammed Gadiwala HackerNoon profile picture
Mohammed Gadiwala@mohammed-gadiwala
Backend engineer | Golang

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite