legacy-test-generator
CommunityGenerate compatibility tests, ensure consistent behavior.
AuthorMichael0520
Version1.0.0
Installs0
System Documentation
What problem does it solve?
During system migrations or refactoring, ensuring that new implementations precisely replicate the behavior of the legacy system is crucial to prevent regressions. Manually writing these compatibility tests is time-consuming and prone to error.
Core Features & Use Cases
- TDD-Driven Test Generation: Creates failing tests based on identified legacy behaviors, guiding a red-green-refactor development cycle to ensure new code matches old.
- SignalStore & Component Compatibility Tests: Generates tests for modern SignalStore and Angular components, verifying they match the old system's state management and user interactions.
- Business Rule Preservation: Focuses on testing critical business rules, API contracts, and even "legacy quirks" to guarantee exact behavioral consistency.
- Use Case: As part of a page migration, this Skill is activated to generate a suite of tests. These tests will fail against the new, empty implementation, then pass as the new code is written, ensuring the migrated page behaves identically to the original.
Quick Start
Say "generate compatibility tests for user service" to create tests that verify its legacy behavior.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: legacy-test-generator Download link: https://github.com/Michael0520/milo-claude/archive/main.zip#legacy-test-generator Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.