pest
pest copied to clipboard
[Bug]: Tests with named datasets are not included in filters
What Happened
When I was using Pest 1, I am able to filter tests by the dataset name.
After upgrading to Pest 2, I am no longer to filter tests with the same way.
How to Reproduce
- Clone nunomaduro/skeleton-php
- Add a dataset at tests/Datasets/Names.php
dataset('names', function () {
yield 'my dataset name 27' => ['arg1'];
});
- Add a test using the dataset
it('should filter dataset with name', function($arg) {
expect($arg)->toBe('arg1');
})->with('names');
- Run command
vendor/bin/pest --filter="27".
Sample Repository
No response
Pest Version
2.24.1
PHP Version
8.1.23
Operation System
macOS
Notes
No response
Related to #1369
This is still an issue.
fixed on 4.x