Go advanced testing tips & tricks

This post has moved https://povilasv.me/go-advanced-testing-tips-tricks/

Povilas Versockas
Jan 31, 2017 · 1 min read

This post is based on talk I gave at Vilnius Golang meetup.
I have read many blogs, watched talks and gathered all these tips & tricks into a single place. Firstly I would like thank the people who came up with these ideas and shared them with community. I have used information and some examples from the following work:

Before reading this, I suggest that you should already know how to do table driven tests and use interfaces for your mock/stub injection. So here goes the tips:

Tip 1. Don’t use frameworks

Tip 2. Use the “underscore test” package

In order to read the full post go to https://povilasv.me/go-advanced-testing-tips-tricks/

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store