Skip to content
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

Allow running tests in parallel #13212

Merged
merged 1 commit into from
Jun 28, 2023
Merged

Conversation

marcusmoore
Copy link
Collaborator

Description

This PR adds brianium/paratest as a development dependency so tests can be run in parallel as mentioned in the Laravel documentation. This is helpful for running the entire test suite locally while using sqlite in memory.

While using sqlite in memory and php artisan test --parallel:

Before After
17.20s 4.17s

On the other hand, you should skip using the --parallel flag when running our current test suite against MySQL since it has to create and migrate multiple databases which is time-consuming.

@marcusmoore marcusmoore requested a review from snipe as a code owner June 26, 2023 23:36
@probot-autolabeler probot-autolabeler bot added backend dependencies Pull requests that update a dependency file labels Jun 26, 2023
@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #23419: Support running tests in parallel.

@what-the-diff
Copy link

what-the-diff bot commented Jun 26, 2023

PR Summary

  • Introduction of Paratest
    The composer.json file has been updated to include brianium/paratest as a development dependency, which allows for faster parallel testing during development.

@snipe snipe merged commit e3f381a into snipe:develop Jun 28, 2023
3 checks passed
@marcusmoore marcusmoore deleted the feature/sc-23419 branch June 28, 2023 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants