testing-strategies · c0x12c — Claude Code skill for Micronaut/Kotlin tests
Gives your coding agent ready test patterns for a Micronaut and Kotlin backend: integration tests, repository tests, test data builders.
npx skills add c0x12c/ai-toolkit --skill testing-strategies -a claude-codeWhat testing-strategies does
This skill spells out how tests should look in a Micronaut and Kotlin project. Every endpoint gets an integration test that extends AbstractControllerTest, calls Retrofit clients from module-client, and wipes the database with truncateAllTables() inside @AfterEach. Raw HttpRequest is off the table. Tokens come from accessToken(), managers stay unmocked, and the whole HTTP stack runs end to end.
Repositories follow their own template. Tests extend AbstractRepositoryTest and cover at least insert, lookup by id, a missing row, a soft-deleted row, and a partial update. The MockK section is blunt about coroutines: use coEvery and coVerify for suspend functions, never every and verify, and reach for runTest from kotlinx.coroutines.test instead of runBlocking. Plain every on a suspend function fails with a confusing error, so this rule saves debugging time.
Parallel runs get a note too: when tests die with a connection-acquisition error, raise maxPoolSize to 20. Configuration for @MicronautTest and the clients lives in integration-test-setup.md; full code samples with MockK and AssertJ are in examples.md. Tests run through Gradle — the whole suite, a single class, or one module.
What it helps with
- write an integration test for a new endpoint
- cover a repository with the baseline set of checks
- figure out why MockK misses a suspend function
- fix parallel tests failing on connection pool exhaustion
- build test fixtures with data builders
Example prompts for the agent
- Write an integration test for the get-employee-by-id endpoint
- Add repository tests for
DefaultEmployeeRepository, including soft delete - Check that suspend functions in the tests use
coEveryandcoVerify
How to install testing-strategies
1Skills CLI (Vercel)
npx skills add c0x12c/ai-toolkit --skill testing-strategies -a claude-code2Manually: put the files in place
~/.claude/skills/testing-strategies/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/testing-strategies/
1Skills CLI (Vercel)
npx skills add c0x12c/ai-toolkit --skill testing-strategies -a codex2Manually: put the files in place
.agents/skills/testing-strategies/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add c0x12c/ai-toolkit --skill testing-strategies -a cursor2Manually: put the files in place
.cursor/skills/testing-strategies/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install c0x12c/ai-toolkit testing-strategies2Manually: put the files in place
.github/skills/testing-strategies/SKILL.md1Skills CLI (Vercel)
npx skills add c0x12c/ai-toolkit --skill testing-strategies -a gemini-cli2Platform CLI
gemini skills install https://github.com/c0x12c/ai-toolkit --path toolkit/skills/testing-strategiesManually: put the files in place
.devin/skills/testing-strategies/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add c0x12c/ai-toolkit --skill testing-strategies -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about testing-strategies
How do I install testing-strategies in Claude Code?
Run npx skills add c0x12c/ai-toolkit --skill testing-strategies -a claude-code. The skill lands in ~/.claude/skills/testing-strategies/SKILL.md.
What does testing-strategies do?
It hands the agent test patterns for a Micronaut and Kotlin backend: integration tests over Retrofit clients, repository tests, MockK rules, and test data builders.
Which tools can the skill use?
Read, Write, Edit, Glob, Grep and Bash, so the agent can inspect code, edit files, and run tests through Gradle.
Similar skills
All skills for Testing and QA →testing-strategies by other authors comes first.