Level 2
F8ck man. I just restarted IDE and it worked. after 5 hours
Hello, I don't know why but If I run pest test with Ctrl+Shift+F10 it not showing dump with colors. In different project it works perfectly. I spent hours but still don't understand reason.
if I run it with php artisan test or vendor/pest.. it dump result in colors.
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
>
test('basic test', function () {
dd('sa');
$this->get(route('home'))->assertSuccessful();
});
"C:\Program Files\php\php8.2\php.exe" C:\Users\Nope\Documents\Nope\vendor\pestphp\pest\bin\pest --teamcity --configuration C:\Users\Nope\Documents\Nope\phpunit.xml C:\Users\Nope\Documents\Nope\tests\Feature\ExampleTest.php "--filter=/^(P\)?Tests\Feature\ExampleTest::basic\stest(\swith\s(data\sset\s\".*\"|\(.*\))(\s\/\s(data\sset\s\".*\"|\(.*\)))*(\s#\d+)?)?/"
"sa" // tests\Feature\ExampleTest.php:4
When I remove this part colors still works but I have not changed anything here. If I fix that I will change so I need that class to be imported.
uses(
Tests\TestCase::class,
Illuminate\Foundation\Testing\RefreshDatabase::class,
)->in('Feature');
F8ck man. I just restarted IDE and it worked. after 5 hours
Please or to participate in this conversation.