maid_generate_stubs
Generate test stubs from a manifest to create boilerplate test files and class structures for test automation.
Instructions
Generate test stubs from a manifest using MAID Runner.
When to use:
Phase 2 (Planning): After creating manifest, generate test file skeleton
Jumpstarting tests: Create boilerplate test structure from manifest
Consistency: Ensure test file naming matches manifest conventions
What it generates:
Test file with naming pattern:
tests/test_task_XXX_*.pyTest class structure based on expectedArtifacts
Import statements for artifacts being tested
Placeholder test methods for each artifact
Tips:
Run after creating/updating a manifest
Generated stubs are starting points - add assertions
Test file is added to manifest's
readonlyFilesautomatically
Args: ctx: MCP context containing session and roots information manifest_path: Path to the manifest JSON file
Returns: GenerateStubsResult with generation outcome
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| manifest_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes | ||
| manifest_path | Yes | ||
| generated_files | Yes | ||
| errors | Yes |