Mark Eschbach

Software Developer && System Analyst

Bootstraping Cucumber over Capybara over Rspec without Rails

System quality and acceptence tests should exist outside of the process. This documents what is needed to bootstrap the above stack using Ruby and Bundler.

Gemfile

source 'https://rubygems.org'
gem 'capybara'
gem 'cucumber'
gem 'rspec'
			

Directory structure

.
./Gemfile
./Gemfile.lock
./features
./features/step_definitions
			

Execution

  • bundle install
  • bundle exec cucumber

Define a simple feature

Define, ensure it runs; mark all elements as pending