Dusk Tests agonisingly slow
Hi I'm trying to start using dusk for some front end tests but experiencing extremely slow tests and I don't know where to start resolving:
I'm using homestead v13 as my development machine, I'm using Laravel 9.5 and at the moment only trying a few simple tests around logging on - these do use a database and I'm using the DatabaseMigration trait as explained in the guidance.
However it's just painfully slow.
I've removed every test except the example test:
<?php
namespace Tests\Browser;
use Laravel\Dusk\Browser;
use Tests\DuskTestCase;
class ExampleTest extends DuskTestCase
{
/**
* A basic browser test example.
*
* @return void
*/
public function testBasicExample()
{
// $this->skipDuskTestInPhpUnit();
$this->browse(function (Browser $browser) {
$browser->visit('/')
->assertSee('Laravel');
});
}
}
And even that one test is taking 5+ minutes to complete :(
How can I start debugging the tests and is there something fundamental I'm missing here.
Just to add my normal php tests work fine and a reasonably quick given the number of tests and database interactions.
Any help appreciated - or alternatives to dusk :(
Please or to participate in this conversation.