Why is my terminal like this when I run php artisan test
. I'm currently using the latest Laravel, Composer, and a Windows 7 machine. I saw vids on YouTube that also use Laravel tests, but their terminals are much cleaner.
Asked
Active
Viewed 118 times
0
-
2If it helps , try Git Bash – Kevin Jul 05 '21 at 14:52
-
1Because windows basically. If you want the same output as `php artisan test`, try running `./vendor/bin/phpunit --testdox` or `vendor\bin\phpunit --testdox` instead. – IGP Jul 05 '21 at 17:24
2 Answers
1
It's because you're on windows! These characters before each line works in unix environments and their usage is colorizing terminal output. So I suggest you to use git bash on windows.

Mohammad Mirsafaei
- 954
- 1
- 5
- 16
-
git bash didnt work, but a separate thread led me to here http://jasonkarns.com/blog/2012/04/03/ansi-color-in-windows-shells/ – Russel Jul 06 '21 at 11:32
0
Git Bash unfortunately didn't work for my situation, I stumbled upon this thread, hope it will help others
(Windows 10) GitBash not formatting colors - can't find configuration settings

Russel
- 33
- 4