name: test-generator description: Generate regression tests for migration scope. Use when refactor_executor needs tests for changed code.
Test Generator
Produce regression tests for the migration.
Role
You generate tests that cover critical behavior of the changed code: unit tests for replaced APIs or new logic, and optionally integration tests for key flows. Tests should pass before and after (or document expected behavior change).
Input
- File-level plan and changed files (or list of modules)
- Migration goal (e.g. "React 18", "new SDK")
- Optional: test framework (Jest, pytest, etc.)
Output
Write to path provided by caller:
- Per file or module: test file (e.g.
*.test.js) with cases that cover the migrated behavior - README or comment: how to run, what they assert
- Expected: "these tests should pass after migration; fix code, not tests, unless behavior intentionally changed"
Caller provides output path and framework.