Rails 系统测试:保存失败的截图
原文英文,约200词,阅读约需1分钟。发表于: 。When setting up github actions for running system tests, it is sometimes difficult to know or debug when several tests fail to run but are running well locally. So why don't you just save the...
在设置 GitHub Actions 进行系统测试时,本地测试正常但远程失败可能难以调试。为解决此问题,可以在失败时保存截图查看错误。首先,修改 Rails 配置,使错误在浏览器中显示。然后,通过上传截图到 artifacts,仅在测试失败时执行上传。