cuketagger 1.5 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +10 -0
- data/.travis.yml +13 -0
- data/Gemfile +18 -0
- data/History.md +11 -0
- data/LICENSE.txt +23 -0
- data/README.markdown +60 -8
- data/Rakefile +21 -55
- data/bin/cuketagger +5 -5
- data/cuketagger.gemspec +31 -0
- data/lib/cuketagger.rb +13 -18
- data/lib/cuketagger/array_list_extension.rb +13 -13
- data/lib/cuketagger/tagger.rb +231 -130
- data/lib/cuketagger/version.rb +3 -3
- data/testing/cucumber/features/.cucumber/stepdefs.json +146 -0
- data/testing/cucumber/features/cuketagger.feature +173 -0
- data/testing/cucumber/features/scenario_outline.feature +37 -0
- data/testing/cucumber/features/step_definitions/cuketagger_steps.rb +20 -0
- data/testing/cucumber/features/support/env.rb +11 -0
- data/testing/cuke_tagger_helper.rb +31 -0
- data/testing/rspec/spec/spec_helper.rb +27 -0
- data/testing/rspec/spec/tagger_integration_spec.rb +1548 -0
- data/testing/rspec/spec/tagger_unit_spec.rb +23 -0
- metadata +147 -64
- data/lib/cuketagger/tag_formatter.rb +0 -21
@@ -0,0 +1,23 @@
|
|
1
|
+
require "#{File.dirname(__FILE__)}/spec_helper"
|
2
|
+
|
3
|
+
|
4
|
+
describe 'Tagger, Unit', :unit_test => true do
|
5
|
+
|
6
|
+
clazz = CukeTagger::Tagger
|
7
|
+
|
8
|
+
let(:tagger) { clazz.new }
|
9
|
+
|
10
|
+
|
11
|
+
it 'can tag feature files' do
|
12
|
+
expect(tagger).to respond_to(:execute)
|
13
|
+
end
|
14
|
+
|
15
|
+
it 'tags based on CLI style arguments' do
|
16
|
+
expect(tagger.method(:execute).arity).to eq(1)
|
17
|
+
end
|
18
|
+
|
19
|
+
it 'can tag feature files without being instantiated' do
|
20
|
+
expect(clazz).to respond_to(:execute)
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
metadata
CHANGED
@@ -1,89 +1,172 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: cuketagger
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease: false
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 5
|
9
|
-
version: "1.5"
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.6.0
|
10
5
|
platform: ruby
|
11
|
-
authors:
|
12
|
-
- Jari
|
13
|
-
-
|
6
|
+
authors:
|
7
|
+
- Jari Bakken
|
8
|
+
- Eric Kessler
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
12
|
+
date: 2016-12-11 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: cuke_modeler
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - "~>"
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '1.0'
|
21
|
+
type: :runtime
|
23
22
|
prerelease: false
|
24
|
-
|
25
|
-
|
26
|
-
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - "~>"
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '1.0'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: cql
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - "~>"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '1.0'
|
27
35
|
- - ">="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
segments:
|
31
|
-
- 0
|
32
|
-
- 9
|
33
|
-
- 2
|
34
|
-
version: 0.9.2
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: 1.3.0
|
35
38
|
type: :runtime
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
requirements:
|
42
|
+
- - "~>"
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: '1.0'
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 1.3.0
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: bundler
|
50
|
+
requirement: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.5'
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.5'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: rake
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '10.0'
|
69
|
+
type: :development
|
70
|
+
prerelease: false
|
71
|
+
version_requirements: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '10.0'
|
76
|
+
- !ruby/object:Gem::Dependency
|
77
|
+
name: racatt
|
78
|
+
requirement: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.0'
|
83
|
+
type: :development
|
84
|
+
prerelease: false
|
85
|
+
version_requirements: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.0'
|
90
|
+
- !ruby/object:Gem::Dependency
|
91
|
+
name: rspec
|
92
|
+
requirement: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '3.0'
|
97
|
+
type: :development
|
98
|
+
prerelease: false
|
99
|
+
version_requirements: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '3.0'
|
104
|
+
- !ruby/object:Gem::Dependency
|
105
|
+
name: cucumber
|
106
|
+
requirement: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "<"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 3.0.0
|
111
|
+
type: :development
|
112
|
+
prerelease: false
|
113
|
+
version_requirements: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "<"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 3.0.0
|
118
|
+
description:
|
119
|
+
email:
|
120
|
+
- morrow748@gmail.com
|
121
|
+
executables:
|
40
122
|
- cuketagger
|
41
123
|
extensions: []
|
42
|
-
|
43
124
|
extra_rdoc_files: []
|
44
|
-
|
45
|
-
|
46
|
-
-
|
125
|
+
files:
|
126
|
+
- ".gitignore"
|
127
|
+
- ".travis.yml"
|
128
|
+
- Gemfile
|
129
|
+
- History.md
|
130
|
+
- LICENSE.txt
|
47
131
|
- README.markdown
|
132
|
+
- Rakefile
|
133
|
+
- bin/cuketagger
|
134
|
+
- cuketagger.gemspec
|
135
|
+
- lib/cuketagger.rb
|
48
136
|
- lib/cuketagger/array_list_extension.rb
|
49
|
-
- lib/cuketagger/tag_formatter.rb
|
50
137
|
- lib/cuketagger/tagger.rb
|
51
138
|
- lib/cuketagger/version.rb
|
52
|
-
-
|
53
|
-
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
139
|
+
- testing/cucumber/features/.cucumber/stepdefs.json
|
140
|
+
- testing/cucumber/features/cuketagger.feature
|
141
|
+
- testing/cucumber/features/scenario_outline.feature
|
142
|
+
- testing/cucumber/features/step_definitions/cuketagger_steps.rb
|
143
|
+
- testing/cucumber/features/support/env.rb
|
144
|
+
- testing/cuke_tagger_helper.rb
|
145
|
+
- testing/rspec/spec/spec_helper.rb
|
146
|
+
- testing/rspec/spec/tagger_integration_spec.rb
|
147
|
+
- testing/rspec/spec/tagger_unit_spec.rb
|
148
|
+
homepage: https://github.com/jarib/cuketagger
|
149
|
+
licenses:
|
150
|
+
- MIT
|
151
|
+
metadata: {}
|
58
152
|
post_install_message:
|
59
153
|
rdoc_options: []
|
60
|
-
|
61
|
-
require_paths:
|
154
|
+
require_paths:
|
62
155
|
- lib
|
63
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
64
|
-
|
65
|
-
requirements:
|
156
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
157
|
+
requirements:
|
66
158
|
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
version: "0"
|
72
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
|
-
requirements:
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: '0'
|
161
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
162
|
+
requirements:
|
75
163
|
- - ">="
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
|
78
|
-
segments:
|
79
|
-
- 0
|
80
|
-
version: "0"
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '0'
|
81
166
|
requirements: []
|
82
|
-
|
83
167
|
rubyforge_project:
|
84
|
-
rubygems_version:
|
168
|
+
rubygems_version: 2.6.7
|
85
169
|
signing_key:
|
86
|
-
specification_version:
|
170
|
+
specification_version: 4
|
87
171
|
summary: batch tagging of cucumber features and scenarios
|
88
172
|
test_files: []
|
89
|
-
|
@@ -1,21 +0,0 @@
|
|
1
|
-
module CukeTagger
|
2
|
-
module TagFormatter
|
3
|
-
attr_accessor :tagger
|
4
|
-
|
5
|
-
def feature(feature)
|
6
|
-
@tagger.process @uri, feature
|
7
|
-
super
|
8
|
-
end
|
9
|
-
|
10
|
-
def scenario_outline(scenario_outline)
|
11
|
-
@tagger.process @uri, scenario_outline
|
12
|
-
super
|
13
|
-
end
|
14
|
-
|
15
|
-
def scenario(scenario)
|
16
|
-
@tagger.process @uri, scenario
|
17
|
-
super
|
18
|
-
end
|
19
|
-
|
20
|
-
end
|
21
|
-
end
|