可以记录Laravel Dusk的测试结果吗? [英] Can Laravel Dusk test results be logged?
本文介绍了可以记录Laravel Dusk的测试结果吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
黄昏为测试提供了单独的日志,这些测试在控制台中返回了失败/警告,但是我真正想要的是一个大的日志文件或报告,列出了我的黄昏脚本中每个测试的通过/失败状态.
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.
推荐答案
您可以使用PHPUnit的日志记录:
You can use PHPUnit's logging:
php artisan dusk --log-junit junit.log
php artisan dusk --log-teamcity teamcity.log
这篇关于可以记录Laravel Dusk的测试结果吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文