@elyracode/test-gen
v0.6.3
Published
Elyra extension for intelligent test generation -- Pest for Laravel, Vitest for TypeScript
Maintainers
Readme
@elyracode/test-gen
Intelligent test generation for Elyra -- Pest for Laravel, Vitest for TypeScript.
Install
elyra install npm:@elyracode/test-genTools
| Tool | Description |
|------|-------------|
| generate_tests | Read a source file and generate comprehensive tests with real assertions |
| find_untested | Scan the project for source files without corresponding test files |
Commands
| Command | Description |
|---------|-------------|
| /test-gen <path> | Generate tests for a specific file |
| /untested | Find all untested source files |
Usage
> Generate tests for app/Http/Controllers/ProductController.php
> Write Pest tests for the User model focusing on validation
> Find files without tests
/test-gen app/Services/PaymentService.php
/untestedFeatures
- Auto-detects framework: Pest for PHP, Vitest for TS/JS
- Reads actual source code for context-aware tests
- Suggests correct test file paths (Laravel/TS conventions)
- Analyzes functions, classes, and dependencies
- Handles existing test files (extends coverage, doesn't duplicate)
