问题
Dusk is providing individual logs for tests that returned failures / warnings in the console, but what I'm really after is one big log file or report that lists the pass/fail status of each test in my Dusk script.
Can anyone suggest a way to go about this? I can't find an answer anywhere but it seems like it should be a relatively common thing to need so I'm sure I've overlooked something.
回答1:
You can use PHPUnit's logging:
php artisan dusk --log-junit junit.log
php artisan dusk --log-teamcity teamcity.log
来源:https://stackoverflow.com/questions/50742581/can-laravel-dusk-test-results-be-logged