Project

autopsy

0.01
No commit activity in last 3 years
No release in over 3 years
See error messages, screenshots, current HTML, and current Javascript console messages on feature test failures.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

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)