简体   繁体   中英

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? 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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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