What problem does it solve?
This Skill automatically updates Java test code to align with changes in production code, ensuring tests compile and pass after refactoring, signature changes, or behavior modifications.
Core Features & Use Cases
- Analyze Code Changes: Identifies signature changes, refactoring, behavior modifications, and API updates between old and new code versions.
- Update Test Code: Modifies method calls, assertions, mocks, and test setup/teardown to match the new production code.
- Add New Test Cases: Generates new tests for new functionality or edge cases introduced by code changes.
- Verify Compilation and Execution: Ensures updated tests compile and pass against the new code.
- Use Case: After refactoring a
Calculator class in Java, this Skill can automatically update the corresponding CalculatorTest class to reflect the new method signatures and assertion logic, preventing broken tests.
Quick Start
Use the java-test-updater skill to update the test suite for the provided Java code changes.