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

Installs
97
GitHub Stars
99
First Seen
Apr 5, 2026
testing-strategies — c0x12c/ai-toolkit