Re:Code coverage for Go integration tests
by gabereiser on Wednesday March 08, 2023 @11:59PM
(#35078452)
Proper testing is your issue, not coverage. Coverage is to know where it’s missing. Proper testing (positive AND negative cases) is extremely valuable. Not only to ensure your code works properly, but also as documentation on how to use your APIs.
Integration testing is where most testing cycles fail. It’s also more difficult for the developer because now they need an emulator, a container, or some sandbox to test the integration.
Feature testing is one thing but I’d like to know if the foundation works, that the plumbing is there.
If you want to methodically measure integration test coverage it seems more valuable to enumerate all your critical features or user flows and attribute test cases to them.