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