ideas icon indicating copy to clipboard operation
ideas copied to clipboard

Custom artisan commands for parallel testing

Open mbroersen opened this issue 3 years ago • 2 comments

Although the parallel testing setup is a great step forward I would like to know if we can add an improvement.

Would it be possible to do the parallel callback before the artisan command? In that way, we can add a custom artisan command what would make the code more flexible.
https://github.com/laravel/framework/blob/a106b939e9bce2ddd7325e1cf2c539d9afa4966a/src/Illuminate/Testing/Concerns/TestDatabases.php#L54-L60

especially when calling this command it would be nice.

php artisan test --parallel

For example, we use a schema to load most of the database setup, this breaks the default php artisan test --parallel

php artisan migrate --schema-path=database/schema/dev-db-schema.dump

Thanks for reading :)

mbroersen avatar Jun 09 '21 08:06 mbroersen

Heya, thanks for submitting this.

This seems like a feature request or an improvement so I'm moving this to the ideas repository instead. It's best to post these in the ideas repository in the future to get support for your idea. After that you may send a PR to the framework. Please only use the laravel/framework issue tracker to report bugs and issues with the framework.

Thanks!

driesvints avatar Jun 09 '21 08:06 driesvints

@driesvints Thank you and sorry about that, thanks for clarifying this. :)

mbroersen avatar Jun 09 '21 08:06 mbroersen