https://github.com/atomicobject/autopsy
Emit helpful artifacts on Capybara Webkit test failures
https://github.com/atomicobject/autopsy
Last synced: 10 months ago
JSON representation
Emit helpful artifacts on Capybara Webkit test failures
- Host: GitHub
- URL: https://github.com/atomicobject/autopsy
- Owner: atomicobject
- Created: 2014-11-06T03:38:20.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-01-06T13:37:00.000Z (over 10 years ago)
- Last Synced: 2025-06-08T22:08:05.003Z (11 months ago)
- Language: Ruby
- Size: 11.7 KB
- Stars: 10
- Watchers: 24
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this 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)