3

I need to write my unit tests output, simply assertion results to a logfile. I have created a custom log file and through Laravel Log::channel I can write a some dummy content to the log file while executing the unit tests.

But I couldn't find any approach to write the assertions output to a log file.

1 Answer 1

3

Well, you can use the log fake package.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.