I have never been able to get php artisan test --profile working. I dug deep today and i ended up in vendor/nunomaduro/collision/src/Adapters/Phpunit/Printers/DefaultPrinter.php
on line 422, when I move
$this->style->writeSlowTests($this->profileSlowTests, $event->telemetryInfo());
outside the IF block, I get profile results as expected.
Seems to me, that $failed = !Facade::result()->wasSuccessful(); does return TRUE on line 414 as expected
BUT
The IF on line 421 negates the $failed to evaluate the true as false, thus failing the check, thus the profile results are not printed. See full block below.
If this is the issue, i'll PR it, or am i missing something obvious?
I have never been able to get php artisan test --profile working. I dug deep today and i ended up in vendor/nunomaduro/collision/src/Adapters/Phpunit/Printers/DefaultPrinter.php
on line 422, when I move $this->style->writeSlowTests($this->profileSlowTests, $event->telemetryInfo()); outside the IF block, I get profile results as expected.
Seems to me, that $failed = !Facade::result()->wasSuccessful(); does return TRUE on line 414 as expected BUT The IF on line 421 negates the $failed to evaluate the true as false, thus failing the check, thus the profile results are not printed. See full block below.
If this is the issue, i'll PR it, or am i missing something obvious?