Technique · Testing
Unit and integration tests
Example-based tests that run the code and assert on behaviour, from single functions up to services with real dependencies.
Sub-techniques
-
Unit tests
V1019.001Fast, isolated tests per function or class.
-
Integration tests with real services
V1019.002Run against real databases and queues in containers instead of mocks.
-
Regression test per bug
V1019.003Every fixed bug gets a test that failed before the fix.
-
Coverage gate
V1019.004Fail when coverage of changed lines drops below a threshold.