testing-strategies
Installation
SKILL.md
Testing Strategies — Quick Reference
See
integration-test-setup.mdfor @MicronautTest configuration, Retrofit client setup, and connection pool tuning.See
examples.mdfor complete code patterns including MockK, test data builders, and assertions.
Integration Tests
Every endpoint needs an integration test. Extend AbstractControllerTest, use Retrofit clients from module-client, and clean up with truncateAllTables() in @AfterEach.
Key rules:
- Always use Retrofit clients — never raw
HttpRequest - Generate real JWT tokens via
accessToken() - Test full HTTP stack end-to-end, no mocking managers