Previous
Preliminary Setup
- Install ruby
- Install cucumber gem
- Install gherkin gem
- Install rspec gem
Starting with Cucumber
- Create a directory to store your work
- In that directory, type cucumber:
- Create a directory called “features”
- Create a feature description file in the “features” directory called rpncalc_basic_operations.feature:
rpncalc_basic_operations.feature
- Run cucumber again, it will report missing steps. Copy those code examples;
- Under the features directory create a directory called step_definitions
- In the step_definitions directory create a file called rpncalc_steps.rb
rpncalc_steps.rb
Creating the basic glue code
- Create a file in the top-level directory called extconf.rb:
extconf.rb
- Create a file called fixture_glue.cpp:
fixture_glue.cpp
Connecting to the glue code
- Update your rpncalc_steps.rb:
Previous
Comments