So i've been using Cucumber w/Capybara and Poltergeist to write automated tests for awhile now. It works pretty well and I enjoy it and it mostly makes sense (still learning it of course).

However Im going to need to be writing some automated tests for some sites that are in "maintenance mode". There is no development going on, so there isn't much use for Cucumber in this case, nor describing in Cucumber terms what's going on. They are strictly going to be ran in the background before doing upgrades to rails versions for example (to ensure things are still working correctly on the UI side of things).

What would I use then? Just Selenium or Capybara rspec? Im really unsure of where I would go from here?

2 Answers 2


I would go with rspec using capybara as effectively the next 'layer' down. Your existing experience should make it relatively easy.
Make sure your UI tests are backed with a reasonable amount of model and controller tests. How much and what to test vary from place depending on what your built, your adherence to a rest model, etc. Try to put logic in models or abstract further and write tests for those pieces.

  • 1
    Cucumber uses rspec anyways correct?
    – Mercfh
    Commented Apr 28, 2016 at 18:22
  • 1
    I believe that is the case Commented Apr 29, 2016 at 20:30

I think you should continue with your script using Selenium for existing functionality. Once your all sites development work is completed, I mean once your all modules are ready then It's easy to move Selenium script in to Cucumber script.

So my opinion you should continue scripting with as usual Selenium for existing functionality, because It's easy to convert Selenium project to Cucumber.

  • I guess im a little confused at how to just run the Selenium scripts without cucumber in the mix? And if I can still use capybara with them.
    – Mercfh
    Commented Apr 28, 2016 at 18:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.