Automatically generate regression tests for Java codebases by analyzing changes between old and new code versions. Use when users need to: (1) Generate tests after refactoring or code changes, (2) Ensure previously tested behavior still works in new versions, (3) Cover modified or newly added code paths, (4) Migrate existing tests to work with updated APIs or signatures, (5) Maintain test coverage during code evolution. Supports JUnit and TestNG frameworks with unit tests, parameterized tests, and exception testing patterns.
85
86%
Does it follow best practices?
Impact
76%
1.00xAverage score across 3 eval scenarios
Passed
No known issues
Algorithm optimization and error handling test migration
Preserves isPrime small numbers test
100%
100%
Preserves isPrime composite test
100%
100%
Preserves divide normal test
100%
100%
Even number optimization coverage
100%
100%
Large prime test
100%
100%
assertThrows for divide by zero
100%
100%
Exception message verified
100%
100%
Performance test present
0%
0%
Negative/zero isPrime edge case
100%
100%
JUnit 5 imports used
100%
100%
Test method naming convention
100%
100%
Dependency injection refactor and new method coverage with Mockito
@ExtendWith(MockitoExtension.class)
100%
0%
@Mock annotations used
100%
0%
@InjectMocks used
0%
0%
send() success test migrated
100%
100%
sendBatch normal case
100%
100%
sendBatch empty list
100%
100%
sendBatch partial failure
100%
100%
logger.log() interaction verified
100%
100%
@BeforeEach or annotation-based setup
100%
100%
JUnit 5 imports used
100%
100%
sendBatch null recipient handling
0%
0%
Signature migration, return type adaptation, obsolete test removal, and parameterized tests
calculateTotal migrated with 10% rate
100%
100%
@ParameterizedTest for calculateTotal
0%
0%
findProduct Optional.isPresent() check
100%
100%
findProduct empty Optional check
100%
100%
Optional-specific tests added
0%
100%
generateLegacyReport test commented as OBSOLETE
0%
33%
Migration comments in migrated tests
0%
100%
calculateTotal zero tax rate
100%
100%
JUnit 5 imports used
75%
62%
No calls to generateLegacyReport
100%
100%
Test naming convention
100%
100%
0f00a4f
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.