-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHPUnit to Pest Converter #18
Conversation
ℹ️ Shift found external data providers in your PHPUnit test suite. These were converted to shared datasets in Pest. The original data providers were left in case they are used by other classes. If not, you may remove them once you complete your conversion to Pest. |
While Shift converted these methods to functions in the new Pest test, you should review these files to see if these functions may be inlined or extracted to a custom helper.
|
ℹ️ Shift converted common PHPUnit assertions to Pest expectations. However, there may also be opportunities to chain your expectations together. For example: // Before
expect($comment)->toBeArray();
expect($comment)->toHaveCount(3);
expect($comment)->toContain('foo');
// After
expect($comment)->toBeArray()->toHaveCount(3)->toContain('foo'); |
|
ℹ️ By default, Pest executes your tests sequentially within a single process. However, you may significantly decrease the time needed to run your tests by utilizing the |
- Remove support for Laravel 9 - Replaced PHPUnit with Pest
This pull request contains changes for migrating your test suite from PHPUnit to Pest automated by the Pest Converter.
Before merging, you need to:
shift-141836
branchcomposer update
to install Pest with your dependenciesvendor/bin/pest
to verify the conversion