autopsy 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/autopsy.rb +24 -0
- metadata +45 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 11b52ebfdb042e5bbe6dd6775fc2755a13078a0e
|
4
|
+
data.tar.gz: 5024c9dccdf6d9ee7a37cc3189e4b80e32ad6325
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 45bf68703b30cdc6ec7b423e1d308cb0089b45a21d80b9bc1bd1575dc83ffcfd9a00de2153293fb7ce78b13bea1d39520e6a9dd9c202de5384ecd74df56a6654
|
7
|
+
data.tar.gz: 3d16e4416ad7c37e7dfde75b4d2186f4f2048d5785a97f11d00ff30274cb59a33dec16060fccfe1e5bfcf07ad13c0bd9a39b54a658848235d6e0937932938562
|
data/lib/autopsy.rb
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'rspec'
|
2
|
+
require 'capybara/rspec'
|
3
|
+
require 'awesome_print'
|
4
|
+
|
5
|
+
RSpec.configure do |config|
|
6
|
+
config.after :each, type: :feature do
|
7
|
+
example = RSpec.current_example
|
8
|
+
if example.exception != nil
|
9
|
+
file_base = "./spec/artifacts/#{example.file_path.split("/").last.split(".").first}-#{example.metadata[:line_number]}"
|
10
|
+
page.save_screenshot "#{file_base}.png"
|
11
|
+
page.save_page "#{file_base}.html"
|
12
|
+
msgs = page.driver.console_messages.ai(html: true)
|
13
|
+
File.open("#{file_base}_msgs.html", 'w') {|f| f.write(msgs) }
|
14
|
+
File.open("#{file_base}_error.log", 'w') do |f|
|
15
|
+
f.write example.exception.message
|
16
|
+
f.write "\n"
|
17
|
+
example.exception.backtrace.each do |l|
|
18
|
+
f.write l
|
19
|
+
f.write "\n"
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
metadata
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: autopsy
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Will Pleasant-Ryan
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-11-05 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: See error messages, screenshots, current HTML, and current Javascript
|
14
|
+
console messages on feature test failures.
|
15
|
+
email: krelian18@gmail.com
|
16
|
+
executables: []
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- lib/autopsy.rb
|
21
|
+
homepage: http://rubygems.org/gems/autopsy
|
22
|
+
licenses:
|
23
|
+
- MIT
|
24
|
+
metadata: {}
|
25
|
+
post_install_message:
|
26
|
+
rdoc_options: []
|
27
|
+
require_paths:
|
28
|
+
- lib
|
29
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
35
|
+
requirements:
|
36
|
+
- - ">="
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '0'
|
39
|
+
requirements: []
|
40
|
+
rubyforge_project:
|
41
|
+
rubygems_version: 2.2.2
|
42
|
+
signing_key:
|
43
|
+
specification_version: 4
|
44
|
+
summary: Emit helpful artifacts for failed Capybara (Webkit) feature tests
|
45
|
+
test_files: []
|