gpt4 book ai didi

ruby-on-rails - 如何在 CodeShip 上设置 selenium firefox 测试?

转载 作者:行者123 更新时间:2023-12-04 07:38:05 25 4
gpt4 key购买 nike

简介您好,我正在开发 Rails 应用程序,它使用 capybaraselenium-webdriverrspec 进行测试。

问题现在我有一个功能测试,它在 firefox(默认的 selenium 浏览器)中运行并且可以重定向到其他主机。例如,在钩子(Hook)之前使用 rspec 获取新的 google 访问 token 。

在我的笔记本电脑上本地所有测试都成功运行:

bundle exec rspec

但是 codeship 的构建失败了。

问题

我需要设置 codeship 来支持“firefox”测试吗?如果是,我该怎么做?

codeship 是否支持重定向到其他主机?

谢谢!

最佳答案

Codeship 支持在 CI 中运行 selenium 测试,您可以在此处找到更多信息 https://documentation.codeship.com/continuous-integration/browser-testing/

然而,当我尝试在 CI 中运行 selenium 测试时,chrome 有 90% 的时间无法启动,所以我计划在其他地方启动 selenium 网格并在 codeship 中运行测试

关于ruby-on-rails - 如何在 CodeShip 上设置 selenium firefox 测试?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32860857/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com