[rspec-users] Testing .Net Newbie
Diwakar, ANGLER - EIT
diwakar at angleritech.com
Fri Jan 15 03:42:31 EST 2010
Good explanation Phillip. It gives a clear idea...
Others can explain it better than me (and have), but in a nutshell:
- use Cucumber for full stack (as the user would see it) testing. Some
call it User Acceptance Testing (UAT)
- use RSpec for unit/functional testing (controllers, models, views,
I think of it like this: RSpec is for the developer, Cucumber is for the
user. That may be a gross oversimplification, but it works for me. :)
But one thing to keep in mind is that you can (and maybe should) use
them together. Through Cucumber, you establish the context of what the
user will expect. Through RSpec, you establish expectations for the
different pieces of the application. That's why it's called "Outside In
Development": You start with the outside of the black box (what the user
interacts with) and then step into the black box (the nuts and bolts
that the user doesn't care about, but you, the developer, do).
Yes, it will come with experience. Just be patient, learn from your
mistakes, and ask lots of questions! That you have testing knowledge
already will help. Once the RSpec/Cucumber light goes on, there will be
no stopping you!
rspec-users mailing list
rspec-users at rubyforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rspec-users