Tagged articles
2 articles
Page 1 of 1
NiuNiu MaTe
NiuNiu MaTe
Sep 28, 2021 · Backend Development

Master Go Unit Testing: From Basics to Mocking with GoConvey

This article explains what unit testing is, shows how to write Go unit tests using the testing package, demonstrates more expressive assertions with GoConvey, and introduces mock creation with mockery, providing practical code examples and best‑practice tips for backend developers.

GoGoConveyMocking
0 likes · 7 min read
Master Go Unit Testing: From Basics to Mocking with GoConvey
Didi Tech
Didi Tech
Jun 1, 2019 · Backend Development

Testing Pyramid and Integration Testing Practices for a Go Service

By applying Mike Cohn’s testing pyramid to a Go scheduling service, the author demonstrates a structured approach that combines straightforward unit tests, organized integration suites with setup/teardown hooks and coverage scripts, expressive GoConvey assertions, and end‑to‑end trace‑ID verification, while noting remaining gaps.

GoGoConveycoverage
0 likes · 12 min read
Testing Pyramid and Integration Testing Practices for a Go Service