Hello.
I’ve seen
http://teachmetocode.com/screencasts/rails-3-building-a-blog-part-1-test-setup-generators/.
He use cucumber with rspec and capybara for tests.
What do you think?
I’m reading about cucumber but I don’t know anything about capybara.
Capybara aims to simplify the process of integration testing Rack
applications, such as Rails, Sinatra or Merb. It is agnostic about the
driver running your tests and currently comes bundled with rack-test,
Culerity, Celerity and Selenium support built in. env.js support is
available as the capybara-envjs gem.
Capybara is built to work nicely with Cucumber. Its API is very similar
to
that of Webrat. It is inspired by and aims to replace Webrat as a DSL
for
interacting with a webapplication.
Check more here: http://github.com/jnicklas/capybara
Edmond
Software Developer | Baobab Health Trust (http://www.baobabhealth.org/)
|
Malawi
Cell: +265 999 465 137 | +265 881 234 717
“Many people doubt open source software and probably don’t realize that
there is an alternative… which is just as good…” – Kevin Scannell
2010/9/23 Mauro [email protected]
Do you advise me to use cucumber for test?
On 23 September 2010 11:32, Edmond K.
2010/9/23 Mauro [email protected]
Do you advise me to use cucumber for test?
Cucumber is designed for Behaviour Driven Development (BDD). Some also
propagate that BDD is the future of software engineering. If you are
goal is
BDD, then Cucumber is the answer. I use Cucumber myself.
But you should know that there are levels of testing. Cucumber is for
high
level testing. You also need to look at other testing tools for low
level.
Rspec, Unit Testing and Shoulda are good examples.
Edmond
Software Developer | Baobab Health Trust (http://www.baobabhealth.org/)
|
Malawi
Cell: +265 999 465 137 | +265 881 234 717
“Many people doubt open source software and probably don’t realize that
there is an alternative… which is just as good…” – Kevin Scannell
Msan M. wrote:
Do you advise me to use cucumber for test?
Absolutely, for user-facing behavior (equivalent to functional and
integration tests). For unit and similar tests, just use RSpec.
Best,
Marnen Laibow-Koser
http://www.marnen.org
[email protected]