phpunit-pretty-result-printer: Terminal is hanging when starting phpunit on Windows
I just installed the extension and put
<phpunit printerClass="Codedungeon\PHPUnitPrettyResultPrinter\Printer">
in my phpunit.xml
When trying to run phpunit the terminal just hangs. I can stop the script with ctrl+c, so it doesnât freeze the terminal. The problem is, nothing happens.
I am using Windows 10. Tried with the command prompt, Windows Powershell and GitBash.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 21 (11 by maintainers)
Commits related to this issue
- fix infinite loop on windows fixes #37 — committed to peterlupu/phpunit-pretty-result-printer by peterlupu 6 years ago
Hey gang, I had time to work on this project before the weekend and have cured the above noted issues. Please upgrade to the
0.8.1or greater release đ@erdmenchen @drjekyll
This looks good, will be merging PR and tagging this afternoon.
what about this code here?
Printer::getConfigurationFile()
edit: fixed, see pull request #39
@ntraykov OK, thank you for this information, I will move forward with further testing to reproduce this issue.
I have the same problem.
Windows 10.0.15063 Laravel 5.6 PHPUnit 7.0.2 PHP 7.1.12 (cli)
Adding it to phpunit.xml results in the hang. Running from command line
phpunit --printer=Codedungeon\\PHPUnitPrettyResultPrinter\\Printergives âCould not use âCodedungeon\PHPUnitPrettyResultPrinter\Printerâ as printer: class does not existâ