What problem does it solve?
Manually writing and validating equivalent unit tests for migrated Java and Python code is time-consuming and error-prone; this agent automates generation, validation, and mapping of tests to ensure behavioral parity after migration.
Core Features & Use Cases
- Dual-language test generation: Produces complete JUnit 5 test classes for Java and pytest modules for Python from paired source files.
- Mismatch-driven regression tests: Reads validation mismatches and emits targeted tests to guard previously failing behaviors.
- Validation and reporting: Verifies Python tests via pytest --collect-only, builds a coverage map, and saves test_state and coverage artifacts to output/state and output/reports.
- LLM-driven prompts: Uses structured prompts to extract java_tests and python_tests JSON fields, handles LLM failures with error states, and writes parseable test files for CI use.
- Use case: When migrating a Java library to idiomatic Python, run this agent to automatically produce mirrored test suites and a coverage report to include in the migration deliverable.
Quick Start
Run the test generation agent on a completed migration state to produce JUnit and pytest suites, validate Python tests, and write a coverage map and test state file.