0

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.

Laravel PHP artisan test on Windows 7

Karl Hill
  • 12,937
  • 5
  • 58
  • 95
Russel
  • 33
  • 4
  • 2
    If it helps , try Git Bash – Kevin Jul 05 '21 at 14:52
  • 1
    Because 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 Answers2

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

it works quite well now enter image description here

Russel
  • 33
  • 4