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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3a6496477c5ec86e2d3aad4a56d02645e32eb4c5
4
- data.tar.gz: 63da106d9b296983ca38892b988e75f2c93030e3
3
+ metadata.gz: 1370bf7adefd54d421440c7550457ea40bff6e98
4
+ data.tar.gz: 73b508a5942d8f71b931463329a32046291ce876
5
5
  SHA512:
6
- metadata.gz: 15ea0486b451ce12fa96fd0a85a71df4ebd1e0ac4c093050cb6e847275309676bad60dbebbbc5664d0b7042c3c854ea77f61a3591d509439053b308d72003a04
7
- data.tar.gz: 100a12552176a31d3491f5cf7ea025006ad9c3f96f758a2d8348f96b9218d5cbf2d3814fa2d56309bc7049ed25922adc421fa883eefb323863deda375768d44a
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.3
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