Getting Dusk to run from the command line & PhpStorm

Posted 4 months ago by mstnorris

Has anyone got Dusk successfully working from both the command line and PhpStorm using a separate database whether thats a MySQL or SQLite DB?

I would like to be able to run my entire testsuite (both unit and feature tests which I can do currently using an in-memory SQLite database from both the command line and from within PhpStorm using the Run Configuration.

Now I would like to be able to run just my Dusk (browser) tests, again, from either the command line or from PhpStorm but specifying either a SQLite database or a MySQL one. I know that an in-memory database is not possible when using Dusk however currently, no matter what .env.dusk.local or phpunit.dusk.xml I add, it always uses my normal development database incorrectly.

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.