Can Laravel Dusk test results be logged?

∥☆過路亽.° 提交于 2019-12-08 03:52:36

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!