java-test-updater

Installation
SKILL.md

Java Test Updater

A refactor broke 47 tests. Some of them should break — the behavior changed. Some of them broke because they were mocking internals. Don't bulk-update assertions; triage first.

Triage: why did this test break?

Failure cause Signal Action
Behavior changed (intentional) Assertion on return value fails Update assertion
API signature changed Compilation error — method renamed, param added Update call site
Over-mocked internals verify(mock).someInternalMethod(...) fails Delete or loosen mock
Over-specific assertion assertEquals("User[id=1, name=Joe]", obj.toString()) Loosen — assert fields, not string
Test was testing a bug Old assertion was wrong; new behavior is correct Update + document fix
Regression (unintentional) Assertion fails, but the change wasn't supposed to affect this Stop. This is a real bug.

The last row is why you don't auto-update. A failing test might be right.

Step 1 — Separate compile breaks from assertion breaks

Installs
1
GitHub Stars
1
First Seen
Mar 29, 2026
java-test-updater — santosomar/general-secure-coding-agent-skills