Capybara does pretty much what you are asking for:
https://github.com/jnicklas/capybara
And it has various drivers for e.g. Selenium.
Re:Why Bother With Cucumber Testing?
by markov_twain on Monday April 07, 2014 @05:05AM
(#7545371)
Here's an entirely working example I just created: https://gist.github.com/benolee/ca49aaa9a0363c18904b
Re:Why Bother With Cucumber Testing?
by bradgessler on Monday April 07, 2014 @03:58AM
(#7545168)
It is always easy to say "don't do X". But without explaining how that can be replaced with- or ported to an alternative, it is a quite hollow advice.
For me, Cucumber is not just the Gherkin syntax. It is, first and for all, a turnkey setup that allows me to have browser interaction (including selenium), organised in a nice and workable way.
How I would implement something like:
In, say, Minitest or MinitestSpec is beyond me.Are there good resources on doing proper integration tests as OP suggests? There are entire books on Cucumber, yet I cannot find something similar on Minitest.
Is it easy to set up a toolchain that allows me to use Capybara and Selenium (phantom.js) interchangeble in my integration tests? If so, is there a place where I can find documentation on that?