pest icon indicating copy to clipboard operation
pest copied to clipboard

Pest is an elegant PHP testing Framework with a focus on simplicity, meticulously designed to bring back the joy of testing in PHP.

Results 331 pest issues
Sort by recently updated
recently updated
newest added

### What Happened `--fail-on-incomplete` doesn't cause exit code to be non-zero when snapshots are missing. ### How to Reproduce 1. Create a [test with `toMatchSnapshot`](https://github.com/tangrufus/pest-fail-on-incomplete/blob/main/tests/Feature/ExampleTest.php) ```php test('example', function () {...

bug

### What Happened Hello 👋, When using `php artisan test --watch --update-snapshots`, the creation or the modification of a snapshot will trigger the watch so test will re-run. This re-run...

bug

### What: - [x] Bug Fix - [ ] New Feature ### Description: Fixes incorrect toMatchArray expectation message. Test: ```php expect($this->user)->toMatchArray([ 'id' => 1, 'email' => '[email protected]', ]); ``` Before:...

### What Happened It should work like with other field names, but it can't cause Expectation has public value property. I have to do the following. ```php expect($setting->value) ->toBe('Test') ->and($setting->name)...

bug

### What Happened Hello, is it possible remove the output for every class on the coverage option if you add a `--no-class-output` option to the coverage command or maybe the...

bug

### What Happened When using the laravel preset architecture in the test and you define an event subscriber the test fails, because preset expect event to have `handle` method. You...

bug

### What Happened Running multiple processes of pest in parallel create a crash with "ShouldNotHappen" for "vendor/pestphp/pest/.temp/coverage.php". e.g. first process deletes the coverage.php from the second process Using "--cache-directory=/tmp/foo" still...

bug

### What Happened beforeEach runs before checking skip() both when on test or directly on beforeEach. I would expect that skip check takes precedence. ### How to Reproduce ``` beforeEach(fn...

bug

### What: - [ ] Bug Fix - [x] New Feature ### Description: This PR introduces a new expectation in Laravel preset for custom contextual attributes. Expect all attributes to...

### What Happened When I use `pest --order-by random` (or configure the execution order to be random via the `phpunit.xml` file), the generated random seed should be reported at the...

bug