delimit_test_generate
Generate test skeletons for source code using Jest, pytest, or vitest. Writes new test stubs for public functions to scaffold tests in untested modules.
Instructions
Generate test skeletons for source code (Jest / pytest / vitest).
When to use: to scaffold new test stubs for public functions when starting tests on a previously-untested module. When NOT to use: to measure coverage of existing tests (use delimit_test_coverage) or run a smoke test (delimit_test_smoke).
Sibling contrast: delimit_test_coverage measures; delimit_test_smoke runs; this writes new test scaffolds.
Side effects: writes new test files alongside the source. Uses AST parsing for Python and regex for JS/TS via backends.ui_bridge.test_generate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | Project path. Required. | |
| source_files | No | Specific files to generate tests for. None = all detectable public functions. | |
| framework | No | Test framework — "jest" (default), "pytest", "vitest". | jest |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||