AlessioGiacobbe wrote a reply+100 XP
5mos ago
AlessioGiacobbe wrote a reply+100 XP
5mos ago
AlessioGiacobbe liked a comment+100 XP
5mos ago
AlessioGiacobbe liked a comment+100 XP
5mos ago
AlessioGiacobbe wrote a reply+100 XP
5mos ago
AlessioGiacobbe started a new conversation+100 XP
5mos ago
hello! i'm running laravel 12 and testing with PHPunit, i have configured it like so in my phpunit.xml:
<env name="DB_CONNECTION" value="pgsql_testing"/>
and in my database.php config:
'pgsql_testing' => [
'driver' => 'pgsql',
'database' => env('DB_DATABASE', '') . '_test',
i use some tests with the RefreshDatabase trait, but when i run my tests my main db gets wiped together with the tests database. i don't understand what i am missing. thanks.
AlessioGiacobbe wrote a reply+100 XP
5mos ago
AlessioGiacobbe started a new conversation+100 XP
5mos ago
hello! i'm trying to run my integration and unit tests in parallel, i have followed the official guide and installed paratest as a dev dependency. But when i try to run them with the --parallel parameter i get
NunoMaduro\Collision\Adapters\Laravel\Exceptions\RequirementsException
Running Collision 8.x artisan test command in parallel requires at least ParaTest (brianium/paratest) 7.x.
I tried searching online and i don't understand why i get this. i'm running laravel 12 on php 8.4 and phpunit.