Dusk: Dusk looking for non-existent bootstrap/autoload.php

Created on 11 Jul 2017  路  6Comments  路  Source: laravel/dusk

I am testing Laravel 5.5, and when I run artisan dusk, I get:
Cannot open file ".../bootstrap/autoload.php".

This just needs to be changed in stubs/phpunit.xml to vendor/autoload.php. In the meantime, I've just created a symlink in my bootstrap directory and it seems to be working fine.

Most helpful comment

Got the same issue, fixed by copying the stub file and changing it myself:

cp vendor/laravel/dusk/stubs/phpunit.xml phpunit.dusk.xml

And update phpunit.dusk.xml, Dusk checks if you have this file and basically uses it.

All 6 comments

Got the same issue, fixed by copying the stub file and changing it myself:

cp vendor/laravel/dusk/stubs/phpunit.xml phpunit.dusk.xml

And update phpunit.dusk.xml, Dusk checks if you have this file and basically uses it.

Same issue here. @dbpolito 's soultion worked for me.

I have a same issue with Laravel 5.5

I had same issue but @dbpolito's solution worked.

I have the same issue with Laravel 5.4.
I solve like this.
create a file autoload.php in my_project/bootstrap folder. With this content.

<?php

define('LARAVEL_START', microtime(true));

require_once __DIR__.'/../vendor/autoload.php';

that's it. Then I run the php artisan dusk. it works find.

Closing this issue because it's already solved, old or not relevant anymore. Feel free to reply if you're still experiencing this issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

marcusmoore picture marcusmoore  路  3Comments

guirociozanini picture guirociozanini  路  6Comments

dellow picture dellow  路  4Comments

alex-LE picture alex-LE  路  7Comments

fwang-laralabs picture fwang-laralabs  路  6Comments