I’m running my PHPunit tests using parallel
command.
I’d like to get the results from the execution of the tests to a file, but after redirecting the output I only get the name of the tests but not the result of the execution.
Ex: in the file I see the following:
==> Preparing to run PHP Unit tests in MyTest.php
In the console I see the result:
Time: 00:00.579, Memory: 61.50 MB
OK (8 tests, 52 assertions)
PHPUnit 9.6.15 by Sebastian Bergmann and contributors.
............ 12 / 12 (100%)
I’ve tried redirecting the output but not sure where I should add the redirect. Or if there’s a better way to output the results of running PHPunit to a file please let me know, thanks.