Summer Sale! All accounts are 50% off this week.

faraz73's avatar

migrate desire table in tests

Hi, for speeding up tests in laravel I want to migrate some tables (not all of them!) for each test .. is there any solutions to do this?

0 likes
1 reply
Sergiu17's avatar
$this->artisan('migrate:fresh', [
            '--path' => [
                'database/migrations/2014_10_12_000000_create_users_table.php',
                'database/migrations/2014_10_12_000001_create_failed_jobs_table.php',
            ]
        ]);

like so, migrate only users and failed_jobs tables

Please or to participate in this conversation.