pest-plugin-drift
pest-plugin-drift copied to clipboard
The Pest Drift Plugin
When generating the pest test file no spaces are put in between `test()` function calls. There is currently no way to correct this with Laravel Pint/PHP-CS-Fixer (between methods in a...
If you use e.g. the `#[CoversClass(Foo::class)]` annotation, then it is not converted to a `->covers()` chained call on the test. This means that if you have `requireCoverageMetadata="true"` in your phpunit.xml...
Wanted to give my tests a drift. After running `./vendor/bin/pest --drift` I get the error below after a while. Then used [Pint](https://github.com/laravel/pint) on my tests folder, and I managed to...
PHPUnit supports [`@testWith` annotations](https://docs.phpunit.de/en/9.6/annotations.html#testwith) which is the same as providing a `with()` dataset to a Pest test: **PHPUnit Input**: ```php class SomeTest extends TestCase { /** * @testWith * ["1"]...