Are you using Log Fake? Or do you a specific logging configuration for testing environment?
Nov 15, 2022
4
Level 6
Laravel Logging during unit tests
Hi All. I am running vscode, and my unit tests that run in that environment, don't seem to have logging working. I am not sure if its a phpunit setting that is swallowing my Log::debug statements, or my vscode unit test runner.... everything is in valet, and logging works fine for everything else, its just debuging my unit tests when they dont do what I expect, the logging in my project code, once called through the unit testing framework, just ignores the Log statements... are they going somewhere weird that I just haven't looked, or are they being silently discarded?
Please or to participate in this conversation.