Rspec-Capybara-Jenkins

Key benefits

  • Integrate Capybara with: Jenkins parallel_test thread-safe HTML reporting
  • pre-configured switch between: local remote fail fast

Setup

sim requires Ruby 1.9.3 or later. To install, type:

gem install sim

Run rspec

Remotely:

bundle exec rspec -r 'sim/remote'

Locally:

bundle exec rspec -r 'sim/local'

Headlessly:

bundle exec rspec -r 'sim/local_phantomjs'

Run cucumber with package locally

Add the following to root/features/support/env.rb

require 'sim/local'