laravel / ideas

Issues board used for Laravel internals discussions.
938 stars 28 forks source link

Add code coverage to artisan test? #2539

Closed nessor closed 3 years ago

nessor commented 3 years ago

Hi guys,

we're currently facing the challenge in our team to run our tests in a CI/CD pipeline in parallel including a code coverage. Here it would be super handy and save a lot of effort if there was a command like

php artisan test --parallel --coverage

which would perhaps internally just call paratest's coverage?

rhzs commented 3 years ago

This is good idea, i usually need to use another CLI to get the code's coverage. I'd be much better if we can integrate it with php artisan command.

nessor commented 3 years ago

Yes, exactly. You can then use the same command locally as well as in pipelines. This makes things more consistent in my opinion.

themsaid commented 3 years ago

Feel free to submit a PR with your suggested changes.