Test-driven development is a great way to keep the quality of your code high, while protecting yourself from regression and proving to yourself and others that your code does what it is supposed to. Here are five tips and tricks that can improve your tests. 1. Put your tests in a different packageGo insists that files in the same folder belong to the same package, that is except for `_test.go` fil
![5 simple tips and tricks for writing unit tests in #golang](https://cdn-ak-scissors.b.st-hatena.com/image/square/d6ef4db50198e75cac8cca235c0c1e73e4f551ca/height=288;version=1;width=512/https%3A%2F%2Fmiro.medium.com%2Fv2%2Fresize%3Afit%3A1200%2F1%2AngnvEnXntoHOLuJny3mUrA.png)