What is RSpec and Cucumber [duplicate]
开发者_开发百科Possible Duplicate:
rspec vs cucumber (rspec stories)
watz the difference between them
From different wiki pages we see that:
- RSpec is a behavior driven development (BDD) framework for the Ruby programming language, inspired by JBehave
- Cucumber is a tool that executes plain-text functional descriptions as automated tests
So you can think of Cucumber as the tool that translate plain text into executable tests. These test can be written in for example RSpec.
But RSpec can also be used on it's own where it's a BDD framework in it own right. The specifications are then expressed not in plain english but in Ruby code.
精彩评论