Skip to content

atomicobject/autopsy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

autopsy

Emit helpful artifacts on Capybara test failures

Supported test frameworks:

  • RSpec
  • Cucumber

Supported Capybara drivers:

  • Webkit
  • Poltergeist
  • Selenium (no console log though)

On Failure, output includes:

  • Error stack trace
  • current screenshot
  • current HTML
  • contents of Javascript console messages

Usage:

  • RSpec: in spec_helper.rb, require 'autopsy/rspec'
  • Cucumber: in env.rb, require 'autopsy/cucumber'
  • Poltergeist: require 'autopsy/poltergeist' and call AutopsyPoltergeist.init before you set your default driver. This will set up a custom poltergeist driver so I can grab console messages. You can pass it a hash of other options.

TODO

  • auto-remove old artifacts at start of test suite
  • explicit tags for certain options (e.g. screenshots)

About

Emit helpful artifacts on Capybara Webkit test failures

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages