autopsy 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/autopsy.rb +9 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8649b99898e3ecd05259bdc630ac046ce8f89b1f
|
4
|
+
data.tar.gz: 86dec6b0b39db427cecf838113e53c87c6a26e8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1de0af4b874e0a0bd0b5bc6a325d13d3e11fb146cc588382767513b3f6b90812deea26ca92f23bfeba7b5ededf015cddd79d8467dc3840b6f569a4c64396b727
|
7
|
+
data.tar.gz: b43a5bc2b22a305aeaf29083ff0dcc4983b82efe237e89d8f966c105ecd7a99e7ef28737b81e8d8df70db705cbb8d054195e6c325b715a1c4e237a3131f1169b
|
data/lib/autopsy.rb
CHANGED
@@ -2,11 +2,19 @@ require 'rspec'
|
|
2
2
|
require 'capybara/rspec'
|
3
3
|
require 'awesome_print'
|
4
4
|
|
5
|
+
class Autopsy
|
6
|
+
class << self
|
7
|
+
attr_accessor :artifacts_path
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
Autopsy.artifacts_path = "./spec/artifacts" # default
|
12
|
+
|
5
13
|
RSpec.configure do |config|
|
6
14
|
config.after :each, type: :feature do
|
7
15
|
example = RSpec.current_example
|
8
16
|
if example.exception != nil
|
9
|
-
file_base = "
|
17
|
+
file_base = "#{Autopsy.artifacts_path}/#{example.file_path.split("/").last.split(".").first}-#{example.metadata[:line_number]}"
|
10
18
|
page.save_screenshot "#{file_base}.png"
|
11
19
|
page.save_page "#{file_base}.html"
|
12
20
|
msgs = page.driver.console_messages.ai(html: true)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autopsy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Will Pleasant-Ryan
|
@@ -18,7 +18,7 @@ extensions: []
|
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
20
|
- lib/autopsy.rb
|
21
|
-
homepage:
|
21
|
+
homepage: https://github.com/willryan/autopsy
|
22
22
|
licenses:
|
23
23
|
- MIT
|
24
24
|
metadata: {}
|