Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Use when you need to write unit tests for Micronaut applications — Mockito-first with @ExtendWith(MockitoExtension.class), @MicronautTest with @MockBean, HttpClient @Client(/) assertions, @Property overrides, @ParameterizedTest, and *Test vs *IT naming. For framework-agnostic Java use @131-java-testing-unit-testing. This should trigger for requests such as Add or improve unit tests in a Micronaut project; Reduce unnecessary @MicronautTest usage with Mockito-first tests; Write Mockito-first unit
.claude/skills/jabrena-521-frameworks-micronaut-testing-unit-tests/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-05 | ✗→✓ | ▲ Improved | -60% | 0% |
| case-06 | ✗→✓ | ▲ Improved | -58% | 0% |
| case-09 | ✗→✓ | ▲ Improved | -26% | 0% |
| case-20 | ✗→✓ | ▲ Improved | -20% | 0% |
| case-01 | ✓→✗ | ▼ Worse | -65% | 0% |
Apply fast testing strategies for Micronaut: Mockito-first, narrow @MicronautTest when HTTP or DI replacement is required.
What is covered in this Skill?
@522Scope: Apply recommendations based on the reference rules and good/bad code examples.
Compile before test refactors; verify the full suite after.
./mvnw compile or mvn compile before applying any change./mvnw clean verify or mvn clean verify after applying improvementsRead references/521-frameworks-micronaut-testing-unit-tests.md and inspect the current project setup before proposing changes.
Identify requested outcomes, constraints, and the minimum safe set of changes to apply.
Implement or refactor configuration/code following the reference patterns and project conventions.
Execute appropriate build/tests and summarize what changed, what was verified, and any follow-up actions.
For detailed guidance, examples, and constraints, see references/521-frameworks-micronaut-testing-unit-tests.md.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | pass→fail | 13,407 | 6,009 | -55% | 1 | 1 | 0% | 2,430 | 859 | -65% | 0 | 0 | — |
case-02 | pass→fail | 11,455 | 5,905 | -48% | 1 | 1 | 0% | 2,002 | 848 | -58% | 0 | 0 | — |
case-03 | fail→fail | 12,897 | 3,427 | -73% | 1 | 1 | 0% | 2,532 | 890 | -65% | 0 | 0 | — |
case-04 | fail→fail | 14,539 | 13,602 | -6% | 1 | 1 | 0% | 2,669 | 3,125 | +17% | 0 | 0 | — |
case-05 | fail→pass | 17,385 | 10,465 | -40% | 1 | 1 | 0% | 3,327 | 1,345 | -60% | 0 | 0 | — |
case-06 | fail→pass | 14,439 | 4,993 | -65% | 1 | 1 | 0% | 2,609 | 1,092 | -58% | 0 | 0 | — |
case-07 | pass→pass | 12,051 | 7,147 | -41% | 1 | 1 | 0% | 2,404 | 1,902 | -21% | 0 | 0 | — |
case-08 | pass→pass | 7,123 | 6,796 | -5% | 1 | 1 | 0% | 1,383 | 1,835 | +33% | 0 | 0 | — |
case-09 | fail→pass | 7,541 | 2,385 | -68% | 1 | 1 | 0% | 1,106 | 821 | -26% | 0 | 0 | — |
case-10 | pass→pass | 5,857 | 2,371 | -60% | 1 | 1 | 0% | 892 | 847 | -5% | 0 | 0 | — |
case-11 | pass→pass | 10,132 | 6,416 | -37% | 1 | 1 | 0% | 1,696 | 1,649 | -3% | 0 | 0 | — |
case-12 | pass→pass | 6,386 | 3,681 | -42% | 1 | 1 | 0% | 1,117 | 1,108 | -1% | 0 | 0 | — |
case-13 | pass→pass | 15,310 | 2,800 | -82% | 1 | 1 | 0% | 1,206 | 930 | -23% | 0 | 0 | — |
case-14 | pass→pass | 6,798 | 5,501 | -19% | 1 | 1 | 0% | 1,108 | 1,563 | +41% | 0 | 0 | — |
case-15 | pass→pass | 10,793 | 5,740 | -47% | 1 | 1 | 0% | 1,944 | 1,485 | -24% | 0 | 0 | — |
case-16 | pass→pass | 8,938 | 6,377 | -29% | 1 | 1 | 0% | 1,444 | 1,554 | +8% | 0 | 0 | — |
case-17 | fail→fail | 13,625 | 12,435 | -9% | 1 | 1 | 0% | 648 | 1,061 | +64% | 0 | 0 | — |
case-18 | pass→pass | 8,882 | 4,971 | -44% | 1 | 1 | 0% | 1,355 | 1,348 | -1% | 0 | 0 | — |
case-19 | pass→pass | 7,490 | 6,793 | -9% | 1 | 1 | 0% | 1,266 | 1,194 | -6% | 0 | 0 | — |
case-20 | fail→pass | 10,959 | 5,055 | -54% | 1 | 1 | 0% | 1,629 | 1,306 | -20% | 0 | 0 | — |
case-21 | pass→pass | 8,817 | 9,047 | +3% | 1 | 1 | 0% | 1,574 | 2,212 | +41% | 0 | 0 | — |
case-22 | pass→pass | 13,287 | 7,255 | -45% | 1 | 1 | 0% | 1,989 | 1,548 | -22% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 19 counted toward the lift figure. The other 3 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +9 percentage points is the difference between those two pass rates over the 19 comparable cases. 3 cases got worse with the skill loaded, and they are included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.