This document will guide you to write your test.
We are using the official testing
go package to write our tests. You can take a look at the documentation here
Every single route of the API must have his own battery of tests.
Every independent features must also be tested.
Each complex integration of dependencies must be tested.
When a new feature is added to a Pull Request, it must come with its tests.
When a feature with a breaking changes is added to a Pull Request, it must come with its tests.