testing-strategies

Installation
SKILL.md

Testing Strategies — Quick Reference

See integration-test-setup.md for @MicronautTest configuration, Retrofit client setup, and connection pool tuning.

See examples.md for 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

Test Naming

Related skills
Installs
8
GitHub Stars
68
First Seen
Apr 5, 2026