130-java-testing-strategies
About 130-java-testing-strategies
A skill for Java developers to design and review unit tests using RIGHT-BICEP, A-TRIP, and CORRECT. It selects guidance based on concerns such as coverage, reliability, or boundary conditions, and requires compilation before changes and verification afterward.
Key features
- 01Check behavior coverage with RIGHT-BICEP
- 02Assess test quality with A-TRIP
- 03Review boundaries with CORRECT
- 04Select strategies based on the request
- 05Run full verification after improvements
Use cases
- 01Find missing behavior tests
- 02Investigate brittle or order-dependent tests
- 03Review invalid inputs and boundary cases
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ jabrena/ plinth --skill 130-java-testing-strategiesAfter installing, type/130-java-testing-strategiesin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
references/130-java-testing-strategies-right-bicep.md130-java-testing-strategies-correct.md130-java-testing-strategies-a-trip.mdDetails
From the project READMEJava testing strategies
Apply proven testing strategies (RIGHT-BICEP, A-TRIP, CORRECT) to design and verify Java unit tests.
What is covered in this Skill?
- RIGHT-BICEP: Key questions to guide test creation — Right results, Boundary conditions, Inverse relationships, Cross-checks, Error conditions, Performance
- A-TRIP: Characteristics of good tests — Automatic, Thorough, Repeatable, Independent, Professional
- CORRECT: Boundary condition verification — Conformance, Ordering, Range, Reference, Existence, Cardinality, Time
Constraints
Before applying any test strategy changes, ensure the project compiles. If compilation fails, stop immediately — do not proceed until resolved. After applying improvements, run full verification.
- MANDATORY: Run
./mvnw compileormvn compilebefore applying any change - SAFETY: If compilation fails, stop immediately and do not proceed — compilation failure is a blocking condition
- VERIFY: Run
./mvnw clean verifyormvn clean verifyafter applying improvements - BEFORE APPLYING: Read only the testing-strategy references selected by the user's concern before changing tests
- FOCUSED ROUTING: For missing behavior coverage or RIGHT-BICEP requests, read
references/130-java-testing-strategies-right-bicep.mdby default - FOCUSED ROUTING: For flaky, brittle, manual, order-dependent, shared-state, or maintainability requests, read
references/130-java-testing-strategies-a-trip.mdby default - FOCUSED ROUTING: For boundary-condition or CORRECT requests, read
references/130-java-testing-strategies-correct.mdby default - BROAD REVIEW: For broad test-strategy reviews, combine RIGHT-BICEP, A-TRIP, and CORRECT references and categorize findings by technique
- EDGE CASE: If the user goal is ambiguous, stop and ask a clarifying question before editing files or running project-wide commands
- EDGE CASE: If required context, files, credentials, or tools are missing, report the blocker explicitly and ask whether to proceed with setup or fallback guidance
- EDGE CASE: If requested changes conflict with project constraints or safety boundaries, explain the conflict and ask for user confirmation on the preferred trade-off
When to use this skill
- Review Java code for testing strategies
- Find missing Java test cases or behavior coverage gaps
- Apply RIGHT-BICEP testing strategies in Java code
- Review flaky, brittle, order-dependent, or hard-to-maintain Java tests
- Apply A-TRIP testing strategies in Java code
- Review Java boundary condition tests
- Apply CORRECT boundary condition verification in Java code
Workflow
- Compile project before test-strategy changes
Run ./mvnw compile or mvn compile and stop immediately if compilation fails.
- Select focused testing-strategy references
Route the request before reading references:
- Read
references/130-java-testing-strategies-right-bicep.mdwhen the request asks what to test, which behavior is missing, whether assertions prove the right result, how to force errors, how to cross-check, or how to add performance guardrails. - Read
references/130-java-testing-strategies-a-trip.mdwhen the request asks why tests are flaky, brittle, manual, slow to run locally, order-dependent, shared-state dependent, unclear, or hard to maintain. - Read
references/130-java-testing-strategies-correct.mdwhen the request asks for boundary-condition review, CORRECT analysis, invalid input handling, conformance, ordering, range, external reference, existence, cardinality, or time cases. - For broad test-strategy reviews, read all three focused references and organize findings by RIGHT-BICEP, A-TRIP, and CORRECT.
Do not require unrelated references for a narrow request unless the user's concern crosses technique boundaries.
- Apply strategy-driven test improvements
Improve or add tests using the selected technique: produce a RIGHT-BICEP gap matrix for missing behavior coverage, an A-TRIP quality finding list for test reliability and maintainability issues, a CORRECT boundary checklist for boundary reviews, or all three sections for broad reviews.
- Verify with full build
Run ./mvnw clean verify or mvn clean verify after applying improvements.
Reference
For detailed guidance, examples, and constraints, see: