A sample BDD framework using Cucumber and Ruby
- Prepare your Ruby environment, it is recommended to use RVM
curl -sSL https://get.rvm.io | bash -s stable --ruby
source ~/.bash_profile- Open the project and install its dependecies
cd cucumber-ruby-sample
gem install bundler
bundle install- You are ready to go...
| Profile | Command |
|---|---|
| API | cucumber -p api |
βββ config -- profile configuration folder
β βββ profiles -- each profile folders
β βββ cucumber.yml -- profile configuration
β
βββ features
β βββ object_abstractions -- object abstraction (e.g. page object) folder for each profile
β β βββ profiles
β βββ scenarios -- Cucumber scenarios folder
β β βββ profiles
β βββ step_definitions -- Cucumber step definitions folder
β β βββ profiles
β βββ support -- Cucumber configuration folder
β βββ env.rb