https://github.com/kfly8/vscode-perl-test
Run Perl tests with ease
https://github.com/kfly8/vscode-perl-test
perl testing vscode-extension
Last synced: about 2 months ago
JSON representation
Run Perl tests with ease
- Host: GitHub
- URL: https://github.com/kfly8/vscode-perl-test
- Owner: kfly8
- License: mit
- Created: 2025-10-21T03:36:01.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-12-17T13:41:19.000Z (6 months ago)
- Last Synced: 2026-02-17T05:26:44.533Z (4 months ago)
- Topics: perl, testing, vscode-extension
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=kfly8.test2-subtest-filter
- Size: 2.6 MB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Perl Test - VSCode Extension
Run Perl tests with ease - directly from your editor with visual feedback!

## Features
- **Gutter Decorations**: Test status icons (✓/✗) appear in the editor gutter
- **Selective Test Execution**: Run individual subtests or Test::Class methods
## Selective Test Execution
This extension enables selective test execution when using the following test modules:
- [Test2::Plugin::SubtestFilter](https://metacpan.org/pod/Test2::Plugin::SubtestFilter)
- Filters subtests by name using the SUBTEST_FILTER environment variable
- [Test::Class](https://metacpan.org/pod/Test::Class)
- Filters test methods using the TEST_METHOD environment variable
Both can be used together for fine-grained test selection.
## Configuration
### Settings
- `test2SubtestFilter.proveCommand`: Full command to run prove with arguments (default: `"prove -lv"`)
### Example Settings
Add to your workspace or user `.vscode/settings.json`:
**Simple:**
```json
{
"test2SubtestFilter.proveCommand": "prove -lv"
}
```
**With Carton:**
```json
{
"test2SubtestFilter.proveCommand": "carton exec -- prove -lv"
}
```
**With Docker Compose:**
```json
{
"test2SubtestFilter.proveCommand": "docker compose exec app carton exec -- prove -lv"
}
```
**With Custom Formatter:**
```json
{
"test2SubtestFilter.proveCommand": "T2_FORMATTER=Cute perl -Ilib"
}
```
## License
MIT
## Credits
Supports [Test2::Plugin::SubtestFilter](https://metacpan.org/pod/Test2::Plugin::SubtestFilter) and Test::Class for selective test execution.