autopsy 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/autopsy/cucumber.rb +12 -0
- data/lib/autopsy/rspec.rb +13 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1370bf7adefd54d421440c7550457ea40bff6e98
|
4
|
+
data.tar.gz: 73b508a5942d8f71b931463329a32046291ce876
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71cb9f7d94bb63bcd8672482dc58fb161f33fdce5160a4c5c1ba0b3f606a89e3f3213df2ab0be2a5df04e65abc8ad9494387c01c01e52f439aa8b563138315cb
|
7
|
+
data.tar.gz: 293569d76b3d0a23337d423431aa7af9a7a6830e2d9cb2a419b810fb72c3e47cea3b6fd03b76d2b6643635e1125027f447f69f42ad87dd214f138ef0af0b776c
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'capybara/cucumber'
|
2
|
+
require_relative '../autopsy'
|
3
|
+
|
4
|
+
Autopsy.artifacts_path = "./features/artifacts"
|
5
|
+
|
6
|
+
After do |scenario|
|
7
|
+
if scenario.failed?
|
8
|
+
file_base = "#{scenario.file.split("/").last.split(".").first}-#{scenario.line}"
|
9
|
+
Autopsy.perform(page, file_base, scenario.exception)
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'rspec'
|
2
|
+
require 'capybara/rspec'
|
3
|
+
require_relative '../autopsy'
|
4
|
+
|
5
|
+
Autopsy.artifacts_path = "./spec/artifacts"
|
6
|
+
|
7
|
+
RSpec.configure do |config|
|
8
|
+
config.after :each, type: :feature do
|
9
|
+
example = RSpec.current_example
|
10
|
+
file_base = "#{example.file_path.split("/").last.split(".").first}-#{example.metadata[:line_number]}"
|
11
|
+
Autopsy.perform(page, file_base, example.exception)
|
12
|
+
end
|
13
|
+
end
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Will Pleasant-Ryan
|
@@ -18,6 +18,8 @@ extensions: []
|
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
20
|
- lib/autopsy.rb
|
21
|
+
- lib/autopsy/cucumber.rb
|
22
|
+
- lib/autopsy/rspec.rb
|
21
23
|
homepage: https://github.com/willryan/autopsy
|
22
24
|
licenses:
|
23
25
|
- MIT
|