CtrlK
BlogDocsLog inGet started
Tessl Logo

421-frameworks-quarkus-testing-unit-tests

Use when you need to write fast unit tests for Quarkus applications — including pure tests with @ExtendWith(MockitoExtension.class), @QuarkusTest with @InjectMock for full CDI mock replacement, @InjectSpy for partial CDI bean mocking, REST Assured for resource-focused tests, @ParameterizedTest with @CsvSource / @MethodSource, QuarkusTestProfile for test-specific configuration overrides, and naming conventions (*Test → Surefire, *IT → Failsafe). For framework-agnostic Java use @131-java-testing-unit-testing. This should trigger for requests such as Add or improve unit tests in a Quarkus project; Reduce slow @QuarkusTest usage with Mockito-first tests; Add @InjectSpy partial mocking or QuarkusTestProfile configuration in Quarkus tests; Convert repeated test methods to @ParameterizedTest with @CsvSource or @MethodSource. Part of cursor-rules-java project

59

Quality

67%

Does it follow best practices?

Impact

No eval scenarios have been run

SecuritybySnyk

Passed

No known issues

Optimize this skill with Tessl

npx tessl skill review --optimize ./skills/421-frameworks-quarkus-testing-unit-tests/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

35%

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

This skill functions primarily as a table of contents pointing to a reference file, with almost no actionable content in the SKILL.md itself. While the workflow structure and constraints are reasonable, the complete absence of concrete code examples for any of the advertised testing patterns (Mockito, @InjectMock, @InjectSpy, @ParameterizedTest, REST Assured) severely limits its usefulness. The skill would benefit greatly from including at least a minimal executable example for the most common pattern (pure Mockito test vs @QuarkusTest with @InjectMock).

Suggestions

Add at least two concrete, executable code examples inline: one for a pure Mockito test (@ExtendWith(MockitoExtension.class)) and one for @QuarkusTest with @InjectMock, showing the key difference and when to choose each.

Remove the duplicated 'What is covered' bullet list since it repeats the description and 'When to use' sections — replace it with a quick-start code snippet that demonstrates the primary recommended pattern.

Consolidate the constraints section — the five bullet points about compilation can be reduced to two: 'Run ./mvnw compile before changes; run ./mvnw clean verify after. Stop if compilation fails.'

Make workflow step 3 specific: instead of 'Apply framework-aligned changes', provide concrete sub-steps like 'Replace @QuarkusTest with @ExtendWith(MockitoExtension.class) where no CDI wiring is needed' with a before/after code snippet.

DimensionReasoningScore

Conciseness

The 'What is covered' section largely duplicates the description metadata and the 'When to use this skill' section repeats trigger phrases from the description. The constraints section is somewhat repetitive (multiple bullet points saying essentially 'compile first, stop if it fails'). However, it's not egregiously verbose and doesn't explain concepts Claude already knows.

2 / 3

Actionability

The skill contains zero executable code examples, no concrete commands beyond generic mvnw compile/verify, and delegates all actual guidance to a reference file. There are no copy-paste ready patterns for @InjectMock, @InjectSpy, @ParameterizedTest, or any of the advertised topics. Claude would need to read the reference file to do anything useful.

1 / 3

Workflow Clarity

The workflow has a clear 4-step sequence with compilation prerequisite and verification at the end, which is good. However, the steps are generic ('apply framework-aligned changes', 'gather scope') rather than specific to Quarkus testing. The validation checkpoints (compile before, verify after) are present but the error recovery is limited to 'stop immediately' without guidance on common failure modes.

2 / 3

Progressive Disclosure

The skill correctly references a single external file for detailed guidance, which is good one-level-deep disclosure. However, since no bundle files were provided, we cannot verify the reference exists or is well-structured. The SKILL.md itself is essentially a thin wrapper that delegates almost everything to the reference, making it too thin — the quick-start content that should be inline (at least one concrete example) is missing entirely.

2 / 3

Total

7

/

12

Passed

Description

100%

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

This is an excellent skill description that is highly specific, comprehensive, and well-differentiated. It lists concrete Quarkus testing techniques, provides explicit trigger scenarios, and even includes a cross-reference to a related but distinct skill for disambiguation. The only minor concern is that it's quite dense, but the information density serves the purpose of accurate skill selection.

DimensionReasoningScore

Specificity

Lists multiple specific concrete actions and technologies: pure tests with @ExtendWith(MockitoExtension.class), @QuarkusTest with @InjectMock, @InjectSpy, REST Assured, @ParameterizedTest with @CsvSource/@MethodSource, QuarkusTestProfile, and naming conventions for Surefire/Failsafe.

3 / 3

Completeness

Clearly answers both 'what' (writing fast unit tests for Quarkus with specific techniques) and 'when' with explicit trigger guidance ('This should trigger for requests such as...' with four concrete scenarios). Also includes a disambiguation pointer to the framework-agnostic Java testing skill.

3 / 3

Trigger Term Quality

Excellent coverage of natural terms a user would say: 'unit tests', 'Quarkus', '@QuarkusTest', 'Mockito', '@InjectMock', '@InjectSpy', 'REST Assured', '@ParameterizedTest', '@CsvSource', '@MethodSource', 'QuarkusTestProfile'. Also includes explicit trigger phrases like 'Add or improve unit tests in a Quarkus project' and 'Reduce slow @QuarkusTest usage'.

3 / 3

Distinctiveness Conflict Risk

Highly distinctive — narrowly scoped to Quarkus-specific testing patterns and explicitly disambiguates from the general Java testing skill (@131-java-testing-unit-testing). The Quarkus-specific annotations and frameworks make it very unlikely to conflict with other skills.

3 / 3

Total

12

/

12

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation11 / 11 Passed

Validation for skill structure

No warnings or errors.

Repository
jabrena/cursor-rules-java
Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.