Back

Wondering what it would take for dusk tests to be able to run in parallel. Huge dusk test suite is a pain, it takes almost an hour to run.

2

361

you'd need to create separate test suites to only run a subset of the Dusk tests. You'd also need separate databases, so that they don't interfere with each other.

1

314

That's the strategy I've adopted until now. But for unit & feature tests, the `--parallel` cli option seems to automatically give you the separate databases setup: laravel.com/docs/11.x/testing#parallel-testing-and-databases



There is no such option for Dusk, you have to do it all by hand, and it's a bit of a chore. I've also had to setup separate chrome driver instances in my case.

Maybe one day I will get some time to hack on this and make a PR that makes it easier.

1

345

In response to @adrienleloup

Correct, and I agree. I have a Github Action workflow with a matrix. So everything is set up separately.

399

  • No matching results...
  • Searching...

/ 1000