Tests

For unit testing, use the testify: (https://github.com/stretchr/testify). It is a simple library which accrues in both assertions and mocks. For functional testing, use the default Go library.

Get Microservice Patterns and Best Practices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.