Junit test scaffold
AI-agent skills for software engineering — works with Claude Code, Codex, Cursor
npx -y skills add vaibhavsaxena022/skills --skill junit-test-scaffoldAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- 23 days oldThe repository was created 23 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Generate JUnit 5 test skeletons for a Java class or method. Use when asked to add tests, scaffold tests, or improve coverage for Spring/Java code. Produces arrange-act-assert tests with mocked dependencies and edge cases.
SKILL.md
1.4 KB, as published. Nobody here has run it
JUnit Test Scaffold
Scaffold meaningful JUnit 5 tests for the target class.
Steps
- Read the target class: its public methods, dependencies, branches, and error paths.
- Generate a
*Testclass:- JUnit 5 (
@Test,@BeforeEach), Mockito (@Mock,@InjectMocks) for dependencies. - One test per behavior, named
methodName_condition_expectedResult. - Arrange–Act–Assert structure; use AssertJ (
assertThat) if the project already does.
- JUnit 5 (
- Cover: the happy path, boundary values,
null/empty inputs, and thrown exceptions (assertThatThrownBy/assertThrows).
Rules
- Match the project's existing test style and libraries — don't introduce new ones.
- Mock external dependencies (DB, HTTP clients); never hit real services.
- Assert behavior and outputs, not implementation details.
- Leave a
// TODOonly where a fixture genuinely needs the author's domain knowledge.