Rails rspec+capybara 在登台服务器上进行测试?

发布于 2025-01-06 00:43:08 字数 149 浏览 1 评论 0原文

所以我在本地主机上测试 rspec+capybara,但是如果我想在登台服务器(linux)上测试,是否可以使用 capybara? 我猜用硒进行测试在登台服务器上不起作用。 我想在分阶段测试前端(主要是 js 的东西),任何建议都会很棒。

我使用 Rails 3。

So I do testing rspec+capybara on localhost, but if I wanted to test on staging server(linux), is it possible to use capybara?
I'm guessing testing with selenium will not work on staging server.
I would like to test frontend(mostly js stuff) on staging, any recommendation would be great.

I use Rails 3.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

海的爱人是光 2025-01-13 00:43:08

查看 headless gem - 来自作者

我创建它是为了可以在 Cucumber 中运行 Selenium 测试,而无需任何 shell 脚本。更重要的是,只有当您针对 Selenium 运行测试时,您才能实现无头。

我想 rspec 也会如此。

Checkout the headless gem - From the author

I created it so I can run Selenium tests in Cucumber without any shell scripting. Even more, you can go headless only when you run tests against Selenium.

I'd imagine it would would with rspec as well.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文