Can Laravel Dusk test results be logged?

2019-05-31 22:34发布

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条回答
Bombasti
2楼-- · 2019-05-31 23:03

You can use PHPUnit's logging:

php artisan dusk --log-junit junit.log
php artisan dusk --log-teamcity teamcity.log
查看更多
登录 后发表回答