简体   繁体   English

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

[英]Rails rspec+capybara test on staging server?

So I do testing rspec+capybara on localhost, but if I wanted to test on staging server(linux), is it possible to use capybara? 因此,我在本地主机上测试了rspec + capybara,但是如果我想在登台服务器(linux)上进行测试,是否可以使用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. 我想在舞台上测试前端(主要是js的东西),任何建议都很好。

I use Rails 3. 我使用Rails 3。

Checkout the headless gem - From the author 检出无头宝石 -来自作者

I created it so I can run Selenium tests in Cucumber without any shell scripting. 我创建它是为了可以在Cucumber中运行Selenium测试,而无需任何shell脚本。 Even more, you can go headless only when you run tests against Selenium. 更重要的是,只有对Selenium运行测试时,您才能变得毫无头绪。

I'd imagine it would would with rspec as well. 我以为rspec也可以。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM