Skip to content

robban/capybara-fail_show

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Helper to show capybara feature fails in the browser

  1. Add the following to your Gemfile

gem ‘capybara-fail_show’, git: ‘git://github.com/robban/capybara-fail_show.git’

  1. In your spec_helper.rb add the row below (before RSpec.configure)

Capybara::FailShow.activate

  1. Now your failing capybara tests will automatically open up in a browser window, making it easier to see what was wrong

If you have a spec where it does not make sence to show the browser, just set fail_show: false on your scenario Example: scenario “Test something on course”, fail_show: false do

stackoverflow.com/questions/13982425/how-to-make-rspec-save-and-open-page-automatically-when-any-spec-fails

About

Helper to show capybara feature fails in the browser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages