results_keeper_rspec 0.3.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3b1687c80aaf6ddc7b433b63d4b61f0540612471
4
- data.tar.gz: 11d3a6f9158db92e19d303ddf057234e5fe91878
3
+ metadata.gz: 97763f5951e6230566bababf4592ee3f628eed37
4
+ data.tar.gz: 8d3cd10db7778d75ff071bd33111196742fc85f5
5
5
  SHA512:
6
- metadata.gz: 2a2ba5e4b5d457f009980352c7921db9291c82bf6246c42f1e4da110ee71046e359d085832a0f5855cebb28c5d1365b729fbb10b66876355c70774533a1f0ba0
7
- data.tar.gz: df73c7b5e6c08a767a86f9980a66e188a269906378556e76594eaa5b0241b85770408554e2f1b9aabc130b8185bf51c3fc1d6c5df6a2507dc6b814b34651fba2
6
+ metadata.gz: ee1a1b868479848119e1e66c78c3460c51ac45049fb0fed491c62ece36be8e1452a2774f225b564afbcc111c3a804b42e561092c5e80ef19cfb0d7e940394fd8
7
+ data.tar.gz: 983781c69e63df20bbde8d6bca6cf956d4a64372aba25cfcd5cf180538e868df97551a877536842a7b481f88c746bb78fd7391f0cd389d316949c83950e92c3a
@@ -1,4 +1,5 @@
1
1
  require_relative 'config'
2
+ require 'pry'
2
3
 
3
4
  module RkRspec
4
5
  class TestDataGenerator
@@ -24,7 +25,8 @@ module RkRspec
24
25
  run_path: run_path,
25
26
  error: scenario_error,
26
27
  revision_id: revision['revision_id'],
27
- duration: test_duration
28
+ duration: test_duration,
29
+ tags: tags(scenario).join(', ')
28
30
  }
29
31
  end
30
32
 
@@ -41,5 +43,21 @@ module RkRspec
41
43
  end
42
44
  end
43
45
  end
46
+
47
+ private
48
+
49
+ def tags(scenario)
50
+ tags = []
51
+ default_keys = [:block, :description_args, :description, :full_description,
52
+ :described_class, :file_path, :line_number, :location,
53
+ :absolute_file_path, :rerun_file_path, :scoped_id,
54
+ :type, :execution_result, :example_group, :caller,
55
+ :shared_group_inclusion_backtrace, :last_run_status]
56
+ scenario.metadata.each do |key, value|
57
+ tags << '@' + key.to_s unless default_keys.include?(key)
58
+ end
59
+ tags
60
+ end
61
+
44
62
  end
45
63
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: results_keeper_rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Kozakov
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-12-13 00:00:00.000000000 Z
12
+ date: 2017-12-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: flickraw