What problem does it solve?
This Skill prevents regressions and inconsistent coverage by standardizing how gotemplate4j tests are written, organized, and verified in the Java 8/JUnit 5/Maven codebase.
Core Features & Use Cases
- Test workflow guardrails: Enforces the use of ./mvnw, Java 8 compatibility, and focused behavior-driven tests for Template, Lexer, Parser, Executor, AST, built-in functions, coverage, and TestSupport-related changes.
- Test quality and coverage targets: Requires instruction coverage >= 90% and branch coverage >= 85% while avoiding low-signal duplicate tests and coverage-only test classes.
- Consistent TestSupport usage: Defines how to use TemplateTestSupport, LexerTestSupport, and ParserTestSupport safely via static helpers, with rules preventing misuse like inheritance.
Quick Start
Use $unit-testing to update or add the minimal set of focused JUnit 5 tests that validate the exact behavior change you made, keeping coverage thresholds and TestSupport usage rules intact.