cuke_modeler 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -5
- data/Gemfile +1 -0
- data/History.md +9 -0
- data/README.md +6 -0
- data/Rakefile +2 -2
- data/cuke_modeler.gemspec +7 -6
- data/lib/cuke_modeler/version.rb +1 -1
- data/{features → testing/cucumber/features}/analysis/test_comparison.feature +0 -0
- data/{features → testing/cucumber/features}/modeling/background_modeling.feature +0 -0
- data/{features → testing/cucumber/features}/modeling/background_output.feature +0 -0
- data/{features → testing/cucumber/features}/modeling/cell_modeling.feature +0 -0
- data/{features → testing/cucumber/features}/modeling/cell_output.feature +0 -0
- data/{features → testing/cucumber/features}/modeling/directory_modeling.feature +0 -0
- data/{features → testing/cucumber/features}/modeling/directory_output.feature +0 -0
- data/{features → testing/cucumber/features}/modeling/doc_string_modeling.feature +0 -0
- data/{features → testing/cucumber/features}/modeling/doc_string_output.feature +0 -0
- data/{features → testing/cucumber/features}/modeling/example_modeling.feature +0 -0
- data/{features → testing/cucumber/features}/modeling/example_output.feature +0 -0
- data/{features → testing/cucumber/features}/modeling/feature_file_modeling.feature +0 -0
- data/{features → testing/cucumber/features}/modeling/feature_file_output.feature +0 -0
- data/{features → testing/cucumber/features}/modeling/feature_modeling.feature +0 -0
- data/{features → testing/cucumber/features}/modeling/feature_output.feature +0 -0
- data/{features → testing/cucumber/features}/modeling/model_output.feature +0 -0
- data/{features → testing/cucumber/features}/modeling/model_structure.feature +0 -0
- data/{features → testing/cucumber/features}/modeling/outline_modeling.feature +0 -0
- data/{features → testing/cucumber/features}/modeling/outline_output.feature +0 -0
- data/{features → testing/cucumber/features}/modeling/row_modeling.feature +0 -0
- data/{features → testing/cucumber/features}/modeling/row_output.feature +0 -0
- data/{features → testing/cucumber/features}/modeling/scenario_modeling.feature +0 -0
- data/{features → testing/cucumber/features}/modeling/scenario_output.feature +0 -0
- data/{features → testing/cucumber/features}/modeling/step_modeling.feature +0 -0
- data/{features → testing/cucumber/features}/modeling/step_output.feature +0 -0
- data/{features → testing/cucumber/features}/modeling/table_modeling.feature +0 -0
- data/{features → testing/cucumber/features}/modeling/table_output.feature +0 -0
- data/{features → testing/cucumber/features}/modeling/tag_modeling.feature +0 -0
- data/{features → testing/cucumber/features}/modeling/tag_output.feature +0 -0
- data/{features → testing/cucumber}/step_definitions/action_steps.rb +0 -0
- data/{features → testing/cucumber}/step_definitions/background_steps.rb +0 -0
- data/{features → testing/cucumber}/step_definitions/directory_steps.rb +0 -0
- data/{features → testing/cucumber}/step_definitions/doc_string_steps.rb +0 -0
- data/{features → testing/cucumber}/step_definitions/feature_file_steps.rb +0 -0
- data/{features → testing/cucumber}/step_definitions/feature_steps.rb +0 -0
- data/{features → testing/cucumber}/step_definitions/modeling_steps.rb +0 -0
- data/{features → testing/cucumber}/step_definitions/setup_steps.rb +0 -0
- data/{features → testing/cucumber}/step_definitions/step_steps.rb +0 -0
- data/{features → testing/cucumber}/step_definitions/table_steps.rb +0 -0
- data/{features → testing/cucumber}/step_definitions/tag_steps.rb +0 -0
- data/{features → testing/cucumber}/step_definitions/verification_steps.rb +0 -0
- data/{features → testing/cucumber}/support/env.rb +1 -1
- data/{features → testing/cucumber}/support/transforms.rb +0 -0
- data/{gemfiles → testing/gemfiles}/gherkin2.gemfile +2 -1
- data/{gemfiles → testing/gemfiles}/gherkin3.gemfile +2 -1
- data/{gemfiles → testing/gemfiles}/gherkin4.gemfile +2 -1
- data/{spec → testing/rspec/spec}/integration/background_integration_spec.rb +1 -1
- data/{spec → testing/rspec/spec}/integration/cell_integration_spec.rb +1 -1
- data/{spec → testing/rspec/spec}/integration/directory_integration_spec.rb +1 -1
- data/{spec → testing/rspec/spec}/integration/doc_string_integration_spec.rb +1 -1
- data/{spec → testing/rspec/spec}/integration/example_integration_spec.rb +2 -2
- data/{spec → testing/rspec/spec}/integration/feature_file_integration_spec.rb +1 -1
- data/{spec → testing/rspec/spec}/integration/feature_integration_spec.rb +1 -1
- data/{spec → testing/rspec/spec}/integration/gherkin_2_adapter_spec.rb +1 -1
- data/{spec → testing/rspec/spec}/integration/gherkin_3_adapter_spec.rb +1 -1
- data/{spec → testing/rspec/spec}/integration/gherkin_4_adapter_spec.rb +1 -1
- data/{spec → testing/rspec/spec}/integration/model_integration_spec.rb +1 -1
- data/{spec → testing/rspec/spec}/integration/nested_integration_spec.rb +1 -1
- data/{spec → testing/rspec/spec}/integration/outline_integration_spec.rb +1 -1
- data/{spec → testing/rspec/spec}/integration/parsing_integration_spec.rb +1 -1
- data/{spec → testing/rspec/spec}/integration/row_integration_spec.rb +1 -1
- data/{spec → testing/rspec/spec}/integration/scenario_integration_spec.rb +1 -1
- data/{spec → testing/rspec/spec}/integration/shared/models_integration_specs.rb +1 -1
- data/{spec → testing/rspec/spec}/integration/step_integration_spec.rb +1 -1
- data/{spec → testing/rspec/spec}/integration/table_integration_spec.rb +5 -5
- data/{spec → testing/rspec/spec}/integration/tag_integration_spec.rb +4 -4
- data/{spec → testing/rspec/spec}/spec_helper.rb +3 -3
- data/{spec → testing/rspec/spec}/unit/background_unit_spec.rb +1 -1
- data/{spec → testing/rspec/spec}/unit/cell_unit_spec.rb +1 -1
- data/{spec → testing/rspec/spec}/unit/described_unit_spec.rb +1 -1
- data/{spec → testing/rspec/spec}/unit/directory_unit_spec.rb +1 -1
- data/{spec → testing/rspec/spec}/unit/doc_string_unit_spec.rb +1 -1
- data/{spec → testing/rspec/spec}/unit/example_unit_spec.rb +1 -1
- data/{spec → testing/rspec/spec}/unit/feature_file_unit_spec.rb +1 -1
- data/{spec → testing/rspec/spec}/unit/feature_unit_spec.rb +1 -1
- data/{spec → testing/rspec/spec}/unit/model_unit_spec.rb +1 -1
- data/{spec → testing/rspec/spec}/unit/named_unit_spec.rb +1 -1
- data/{spec → testing/rspec/spec}/unit/nested_unit_spec.rb +1 -1
- data/{spec → testing/rspec/spec}/unit/outline_unit_spec.rb +1 -1
- data/{spec → testing/rspec/spec}/unit/parsed_unit_spec.rb +1 -1
- data/{spec → testing/rspec/spec}/unit/parsing_unit_spec.rb +1 -1
- data/{spec → testing/rspec/spec}/unit/row_unit_spec.rb +1 -1
- data/{spec → testing/rspec/spec}/unit/scenario_unit_spec.rb +1 -1
- data/{spec → testing/rspec/spec}/unit/shared/bare_bones_models_unit_specs.rb +1 -1
- data/{spec → testing/rspec/spec}/unit/shared/containing_models_unit_specs.rb +1 -1
- data/{spec → testing/rspec/spec}/unit/shared/described_models_unit_specs.rb +1 -1
- data/{spec → testing/rspec/spec}/unit/shared/models_unit_specs.rb +1 -1
- data/{spec → testing/rspec/spec}/unit/shared/named_models_unit_specs.rb +1 -1
- data/{spec → testing/rspec/spec}/unit/shared/nested_models_unit_specs.rb +1 -1
- data/{spec → testing/rspec/spec}/unit/shared/parsed_models_unit_specs.rb +1 -1
- data/{spec → testing/rspec/spec}/unit/shared/prepopulated_models_unit_specs.rb +1 -1
- data/{spec → testing/rspec/spec}/unit/shared/sourced_models_unit_specs.rb +1 -1
- data/{spec → testing/rspec/spec}/unit/shared/stepped_models_unit_specs.rb +1 -1
- data/{spec → testing/rspec/spec}/unit/shared/stringifiable_models_unit_specs.rb +1 -1
- data/{spec → testing/rspec/spec}/unit/shared/tagged_models_unit_specs.rb +1 -1
- data/{spec → testing/rspec/spec}/unit/sourceable_unit_spec.rb +1 -1
- data/{spec → testing/rspec/spec}/unit/step_unit_spec.rb +1 -1
- data/{spec → testing/rspec/spec}/unit/stepped_unit_spec.rb +1 -1
- data/{spec → testing/rspec/spec}/unit/table_unit_spec.rb +1 -1
- data/{spec → testing/rspec/spec}/unit/tag_unit_spec.rb +1 -1
- data/{spec → testing/rspec/spec}/unit/taggable_unit_spec.rb +1 -1
- data/todo.txt +0 -1
- metadata +135 -222
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58018508ad6c8e92c5f11d7a75e5eb88681ea709
|
4
|
+
data.tar.gz: 3bbd167d559734e03ee8fbb0cf763a6693942070
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6328f76ee336f40fb21a6ebd959bd2bcf2db7660ceaebfb818d5c1957efa1e2c9dc823e42229c0b4022e8db4d5148da46e7cf94177b5c62d5b2bae4be9eb1ef
|
7
|
+
data.tar.gz: 8effa843394cd3d9e12d2215e1abc65efd8de06bb259519a49d9219ed2050c1a1c8e47008d7f2cb654d38a21bd01b730367dbad30027318f22a06016094c5831
|
data/.travis.yml
CHANGED
@@ -7,17 +7,17 @@ rvm:
|
|
7
7
|
- 2.2.2
|
8
8
|
|
9
9
|
gemfile:
|
10
|
-
- gemfiles/gherkin2.gemfile
|
11
|
-
- gemfiles/gherkin3.gemfile
|
12
|
-
- gemfiles/gherkin4.gemfile
|
10
|
+
- testing/gemfiles/gherkin2.gemfile
|
11
|
+
- testing/gemfiles/gherkin3.gemfile
|
12
|
+
- testing/gemfiles/gherkin4.gemfile
|
13
13
|
|
14
14
|
|
15
15
|
matrix:
|
16
16
|
exclude:
|
17
17
|
- rvm: 1.8.7
|
18
|
-
gemfile: gemfiles/gherkin3.gemfile
|
18
|
+
gemfile: testing/gemfiles/gherkin3.gemfile
|
19
19
|
- rvm: 1.8.7
|
20
|
-
gemfile: gemfiles/gherkin4.gemfile
|
20
|
+
gemfile: testing/gemfiles/gherkin4.gemfile
|
21
21
|
|
22
22
|
# todo - Remove this once TravisCI fixes their bundler issue (https://github.com/alphagov/govuk_template/pull/186)
|
23
23
|
before_install:
|
data/Gemfile
CHANGED
data/History.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
### Version 1.0.2 / 2016-09-12
|
2
|
+
|
3
|
+
* A more detailed gem description and summary have been added to the gemspec.
|
4
|
+
|
5
|
+
* The gem now declares version limits on its dependencies.
|
6
|
+
|
7
|
+
* Badges for the current status of the project have been added to the Readme.
|
8
|
+
|
9
|
+
|
1
10
|
### Version 1.0.1 / 2016-09-10
|
2
11
|
|
3
12
|
* In the Readme file, added a link to the published documentation.
|
data/README.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
[![Gem Version](https://badge.fury.io/rb/cuke_modeler.svg)](https://rubygems.org/gems/cuke_modeler)
|
2
|
+
[![Build Status](https://travis-ci.org/enkessler/cuke_modeler.svg?branch=dev)](https://travis-ci.org/enkessler/cuke_modeler)
|
3
|
+
[![Dependency Status](https://gemnasium.com/enkessler/cuke_modeler.svg)](https://gemnasium.com/enkessler/cuke_modeler)
|
4
|
+
|
5
|
+
|
6
|
+
|
1
7
|
# CukeModeler
|
2
8
|
|
3
9
|
There comes a time in every programmer's adventures with Cucumber when they
|
data/Rakefile
CHANGED
@@ -25,8 +25,8 @@ namespace 'cuke_modeler' do
|
|
25
25
|
|
26
26
|
desc 'Test gem based on Ruby/dependency versions'
|
27
27
|
task :smart_test do |t, args|
|
28
|
-
rspec_args = '--tag ~@wip'
|
29
|
-
cucumber_args = '-f progress -t ~@wip'
|
28
|
+
rspec_args = '--tag ~@wip --pattern testing/rspec/spec/**/*_spec.rb'
|
29
|
+
cucumber_args = 'testing/cucumber/features -r testing/cucumber/support -r testing/cucumber/step_definitions -f progress -t ~@wip'
|
30
30
|
|
31
31
|
Rake::Task['cuke_modeler:test_everything'].invoke(rspec_args, cucumber_args)
|
32
32
|
end
|
data/cuke_modeler.gemspec
CHANGED
@@ -8,7 +8,8 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = CukeModeler::VERSION
|
9
9
|
spec.authors = ["Eric Kessler"]
|
10
10
|
spec.email = ["morrow748@gmail.com"]
|
11
|
-
spec.summary = %q{A gem providing functionality to model
|
11
|
+
spec.summary = %q{A gem providing functionality to model Gherkin based test suites.}
|
12
|
+
spec.description = %q{This gem facilitates modeling a test suite that is written in Gherkin (e.g. Cucumber, SpecFlow, Lettuce, etc.). It does this by providing an abstraction layer on top of the Abstract Syntax Tree that the 'gherkin' gem generates when parsing features, as well as providing models for feature files and directories in order to be able to have a fully traversable model tree of a test suite's structure. These models can then be analyzed or manipulated more easily than the underlying AST layer.}
|
12
13
|
spec.homepage = 'https://github.com/enkessler/cuke_modeler'
|
13
14
|
spec.license = "MIT"
|
14
15
|
|
@@ -18,14 +19,14 @@ Gem::Specification.new do |spec|
|
|
18
19
|
spec.require_paths = ["lib"]
|
19
20
|
|
20
21
|
spec.add_runtime_dependency 'gherkin', '< 5.0'
|
21
|
-
spec.add_runtime_dependency('json', '
|
22
|
+
spec.add_runtime_dependency('json', '>= 1.0', '<= 3.0')
|
22
23
|
spec.add_runtime_dependency('multi_json', '~> 1.0')
|
23
24
|
|
24
25
|
spec.add_development_dependency "bundler", "~> 1.5"
|
25
|
-
spec.add_development_dependency "rake"
|
26
|
-
spec.add_development_dependency 'cucumber'
|
26
|
+
spec.add_development_dependency "rake", '< 12.0.0'
|
27
|
+
spec.add_development_dependency 'cucumber', '< 3.0.0'
|
27
28
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
28
|
-
spec.add_development_dependency 'simplecov'
|
29
|
+
spec.add_development_dependency 'simplecov', '< 1.0.0'
|
29
30
|
spec.add_development_dependency 'racatt', '~> 1.0'
|
30
|
-
spec.add_development_dependency 'coveralls'
|
31
|
+
spec.add_development_dependency 'coveralls', '< 1.0.0'
|
31
32
|
end
|
data/lib/cuke_modeler/version.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,6 +1,6 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
gemspec :path => "
|
3
|
+
gemspec :path => "../../"
|
4
4
|
gem "gherkin", "< 3.0.0"
|
5
5
|
|
6
6
|
# cuke_modeler can play with pretty much any version of these but they all play differently with Ruby
|
@@ -15,6 +15,7 @@ end
|
|
15
15
|
|
16
16
|
if RUBY_VERSION =~ /^1\./
|
17
17
|
gem 'tins', '< 1.7' # The 'tins' gem requires Ruby 2.x on/after this version
|
18
|
+
gem 'json', '< 2.0' # The 'json' gem drops pre-Ruby 2.x support on/after this version
|
18
19
|
end
|
19
20
|
|
20
21
|
if RUBY_VERSION =~ /^2\.[23456789]/
|
@@ -1,6 +1,6 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
gemspec :path => "
|
3
|
+
gemspec :path => "../../"
|
4
4
|
gem "gherkin", "~> 3.0"
|
5
5
|
|
6
6
|
# cuke_modeler can play with pretty much any version of these but they all play differently with Ruby
|
@@ -13,6 +13,7 @@ end
|
|
13
13
|
|
14
14
|
if RUBY_VERSION =~ /^1\./
|
15
15
|
gem 'tins', '< 1.7' # The 'tins' gem requires Ruby 2.x on/after this version
|
16
|
+
gem 'json', '< 2.0' # The 'json' gem drops pre-Ruby 2.x support on/after this version
|
16
17
|
end
|
17
18
|
|
18
19
|
if RUBY_VERSION =~ /^2\.[23456789]/
|
@@ -1,6 +1,6 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
gemspec :path => "
|
3
|
+
gemspec :path => "../../"
|
4
4
|
gem "gherkin", "~> 4.0"
|
5
5
|
|
6
6
|
# cuke_modeler can play with pretty much any version of these but they all play differently with Ruby
|
@@ -13,6 +13,7 @@ end
|
|
13
13
|
|
14
14
|
if RUBY_VERSION =~ /^1\./
|
15
15
|
gem 'tins', '< 1.7' # The 'tins' gem requires Ruby 2.x on/after this version
|
16
|
+
gem 'json', '< 2.0' # The 'json' gem drops pre-Ruby 2.x support on/after this version
|
16
17
|
end
|
17
18
|
|
18
19
|
if RUBY_VERSION =~ /^2\.[23456789]/
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require "#{File.dirname(__FILE__)}/../spec_helper"
|
2
2
|
|
3
3
|
|
4
4
|
describe 'Example, Integration' do
|
@@ -462,7 +462,7 @@ describe 'Example, Integration' do
|
|
462
462
|
| param |
|
463
463
|
| value |'
|
464
464
|
|
465
|
-
file_path = "#{@default_file_directory}/
|
465
|
+
file_path = "#{@default_file_directory}/example_test_file.feature"
|
466
466
|
File.open(file_path, 'w') { |file| file.write(source) }
|
467
467
|
end
|
468
468
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require "#{File.dirname(__FILE__)}/../spec_helper"
|
2
2
|
|
3
3
|
|
4
4
|
describe 'Table, Integration' do
|
@@ -111,7 +111,7 @@ describe 'Table, Integration' do
|
|
111
111
|
' | a | table |']
|
112
112
|
source = source.join("\n")
|
113
113
|
|
114
|
-
file_path = "#{@default_file_directory}/
|
114
|
+
file_path = "#{@default_file_directory}/table_test_file.feature"
|
115
115
|
File.open(file_path, 'w') { |file| file.write(source) }
|
116
116
|
end
|
117
117
|
|
@@ -146,7 +146,7 @@ describe 'Table, Integration' do
|
|
146
146
|
* a step:
|
147
147
|
| a | table |'
|
148
148
|
|
149
|
-
file_path = "#{@default_file_directory}/
|
149
|
+
file_path = "#{@default_file_directory}/table_test_file.feature"
|
150
150
|
File.open(file_path, 'w') { |file| file.write(source) }
|
151
151
|
end
|
152
152
|
|
@@ -174,7 +174,7 @@ describe 'Table, Integration' do
|
|
174
174
|
| param |
|
175
175
|
| value |'
|
176
176
|
|
177
|
-
file_path = "#{@default_file_directory}/
|
177
|
+
file_path = "#{@default_file_directory}/table_test_file.feature"
|
178
178
|
File.open(file_path, 'w') { |file| file.write(source) }
|
179
179
|
end
|
180
180
|
|
@@ -199,7 +199,7 @@ describe 'Table, Integration' do
|
|
199
199
|
* a step:
|
200
200
|
| a | table |'
|
201
201
|
|
202
|
-
file_path = "#{@default_file_directory}/
|
202
|
+
file_path = "#{@default_file_directory}/table_test_file.feature"
|
203
203
|
File.open(file_path, 'w') { |file| file.write(source) }
|
204
204
|
end
|
205
205
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require "#{File.dirname(__FILE__)}/../spec_helper"
|
2
2
|
|
3
3
|
|
4
4
|
describe 'Tag, Integration' do
|
@@ -102,7 +102,7 @@ describe 'Tag, Integration' do
|
|
102
102
|
Scenario: Test scenario
|
103
103
|
* a step'
|
104
104
|
|
105
|
-
file_path = "#{@default_file_directory}/
|
105
|
+
file_path = "#{@default_file_directory}/tag_test_file.feature"
|
106
106
|
File.open(file_path, 'w') { |file| file.write(source) }
|
107
107
|
end
|
108
108
|
|
@@ -130,7 +130,7 @@ describe 'Tag, Integration' do
|
|
130
130
|
| param |
|
131
131
|
| value |'
|
132
132
|
|
133
|
-
file_path = "#{@default_file_directory}/
|
133
|
+
file_path = "#{@default_file_directory}/tag_test_file.feature"
|
134
134
|
File.open(file_path, 'w') { |file| file.write(source) }
|
135
135
|
end
|
136
136
|
|
@@ -157,7 +157,7 @@ describe 'Tag, Integration' do
|
|
157
157
|
Examples:
|
158
158
|
| param |
|
159
159
|
| value |'
|
160
|
-
file_path = "#{@default_file_directory}/
|
160
|
+
file_path = "#{@default_file_directory}/tag_test_file.feature"
|
161
161
|
File.open(file_path, 'w') { |file| file.write(source) }
|
162
162
|
end
|
163
163
|
|