results_keeper_rspec 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/results_keeper_rspec/test_data_generator.rb +19 -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: 97763f5951e6230566bababf4592ee3f628eed37
|
4
|
+
data.tar.gz: 8d3cd10db7778d75ff071bd33111196742fc85f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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-
|
12
|
+
date: 2017-12-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: flickraw
|