March 23, 2023

Golang / Go Crash Course 04 | Unit testing our code by Mocking with Testify

In this article, we are going to unit test our application by mocking some components in order to isolate the modules that we want to test. In the previous article we refactored our API implement a Clean Architecture approach so we created all these interfaces. We are going to use Testify to create the mock repository that is going to be an implementation of the post repository interface.

Golang / Go Crash Course 04 | Unit testing our code by Mocking with Testify Read More