cukeforker 1.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NTEzMTkxZjJlN2YwMzczYjVkZGUxNjZiYWNiOTQ2MjY2ODFhOThlNw==
5
- data.tar.gz: !binary |-
6
- ZTAxZDMyNTJhZWZhZThhNTBlMTdiYTU1NmY2ZmNhYmE0ZWQ0OTVlYw==
2
+ SHA1:
3
+ metadata.gz: 7f2e9127b059ebdedae081650e67217564dfe907
4
+ data.tar.gz: fcb3560fcad8f5548552eb8edff77e1076dbceb6
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- ZDk4ODkwMmI0MmFhYjQzYTg5MGY5NGQ5NmI0YTA5NzJiM2NlNGI2NGFlY2I1
10
- ZDk0ODEzNjI2ZDkxMTQ3YzUwZDg3ODY0MzNlZjAzZTdjMDFkNWNiMzM1OGIz
11
- YzVlYzZmMWIyNmQ2M2Y5YmMxMjEwNjRhNDU4OGViNWI4ZGRiM2I=
12
- data.tar.gz: !binary |-
13
- YTBhZmRkZGZkMGM1OTJkZGM1YWJhMmIwZjdmY2FiN2RjNDU5NDZjMzZkMmEx
14
- MDc4NTEzMDVjOTZjNjcyNDdiNjUyODIzMTRiOWIwOGFhZWI0M2M2NWJmOTEz
15
- ODI1ZTIwODNlYWIyMzQ5MTEyMzU1ZmQ5ZjJjNzNiNmNiZDhkOTA=
6
+ metadata.gz: bd2426211b4aa62f78a907127f3374ae0050980854bf76f700f6020e6df501abba312ce46caa51d5dfa342fa8b347874710bdfc304491f90f971089ec3013059
7
+ data.tar.gz: a59faac51b5f2b6412af8d66d6b10c4b48b6e56db2812b9c127642608dd6d366a0fceb30fff4d769a195487ca54db544c879b43cadfa1346c556e7f1ca2a2009
data/.rspec CHANGED
@@ -1 +1 @@
1
- --color -fs
1
+ --color -fp
@@ -1,8 +1,7 @@
1
1
  rvm:
2
- - 1.9.3
3
2
  - 2.0.0
4
- - 2.1.0
3
+ - 2.1
5
4
  - 2.2.0
6
5
 
7
6
  before_install:
8
- - gem update bundler
7
+ - gem update bundler
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
14
14
 
15
15
  s.rubyforge_project = "cukeforker"
16
16
 
17
- s.add_dependency "cucumber", ">= 2.0.0"
17
+ s.add_dependency "cucumber", ">= 3.0.0"
18
18
  s.add_dependency "vnctools", ">= 0.0.5"
19
19
  s.add_development_dependency "rspec", "~> 2.5"
20
20
  s.add_development_dependency "coveralls"
@@ -6,7 +6,7 @@ module CukeForker
6
6
  attr_accessor :name
7
7
  attr_accessor :verbose
8
8
  attr_accessor :features
9
- attr_accessor :extra_args
9
+ attr_accessor :opts
10
10
 
11
11
  def initialize(*args, &task_block)
12
12
  setup_ivars(args)
@@ -29,13 +29,13 @@ module CukeForker
29
29
 
30
30
  split = args.index("--")
31
31
  if split
32
- @extra_args = args[0..(split-1)]
32
+ @opts = args[0..(split-1)]
33
33
  @features = args[(split+1)..-1]
34
34
  end
35
35
  end
36
36
 
37
37
  def run_cukeforker
38
- unless CukeForker::Runner.run(@features, :extra_args => @extra_args)
38
+ unless CukeForker::Runner.run(@features, @opts)
39
39
  raise 'Test failures'
40
40
  end
41
41
  end
@@ -21,4 +21,18 @@ class ScenarioList
21
21
 
22
22
  def done
23
23
  end
24
- end
24
+
25
+ # Cucumber 3.0+ API
26
+ def test_step_started(test_step)
27
+ end
28
+
29
+ def test_step_finished(test_step, result)
30
+ end
31
+
32
+ def test_case_started(test_case)
33
+ end
34
+
35
+ def test_case_finished(test_case, result)
36
+ after_test_case(test_case, result)
37
+ end
38
+ end
@@ -20,7 +20,13 @@ module CukeForker
20
20
  feature_files.each do |feature|
21
21
  source = CukeForker::NormalisedEncodingFile.read(feature)
22
22
  file = Cucumber::Core::Gherkin::Document.new(feature, source)
23
- self.new.execute([file], scenario_list, [Cucumber::Core::Test::TagFilter.new(tags)])
23
+ filters = [Cucumber::Core::Test::TagFilter.new(tags)]
24
+ if Cucumber::VERSION[0].to_i < 3
25
+ self.new.execute([file], scenario_list, filters)
26
+ else
27
+ # For Cucumber 3.0+ API, we have to flip the last two parameters
28
+ self.new.execute([file], filters, scenario_list)
29
+ end
24
30
  end
25
31
  scenario_list.scenarios
26
32
  end
@@ -29,4 +35,4 @@ module CukeForker
29
35
  Dir.glob('**/**.feature')
30
36
  end
31
37
  end
32
- end
38
+ end
@@ -1,3 +1,3 @@
1
1
  module CukeForker
2
- VERSION = "1.1.0"
2
+ VERSION = "2.1.1"
3
3
  end
@@ -58,7 +58,7 @@ module CukeForker
58
58
  Given nothing else happens
59
59
  GHERKIN
60
60
 
61
- all_scenarios = Scenarios.by_args(%W[-t @find_me,@me_too])
61
+ all_scenarios = Scenarios.by_args(["-t @find_me or @me_too"])
62
62
 
63
63
  all_scenarios.length.should == 2
64
64
  all_scenarios[0].should == "features/test1.feature:3"
@@ -78,7 +78,7 @@ module CukeForker
78
78
  Given nothing else happens
79
79
  GHERKIN
80
80
 
81
- all_scenarios = Scenarios.by_args(%W[-t @find_me -t @me_too])
81
+ all_scenarios = Scenarios.by_args(["-t @find_me and @me_too"])
82
82
 
83
83
  all_scenarios.length.should == 1
84
84
  all_scenarios[0].should == "features/test1.feature:3"
@@ -97,7 +97,7 @@ module CukeForker
97
97
  Given nothing else happens
98
98
  GHERKIN
99
99
 
100
- all_scenarios = Scenarios.by_args(%W[-t ~@find_me])
100
+ all_scenarios = Scenarios.by_args(["-t not @find_me"])
101
101
 
102
102
  all_scenarios.length.should == 1
103
103
  all_scenarios[0].should == "features/test1.feature:7"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cukeforker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jari Bakken
@@ -10,90 +10,90 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-03-25 00:00:00.000000000 Z
13
+ date: 2018-04-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: cucumber
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - ! '>='
19
+ - - ">="
20
20
  - !ruby/object:Gem::Version
21
- version: 2.0.0
21
+ version: 3.0.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - ! '>='
26
+ - - ">="
27
27
  - !ruby/object:Gem::Version
28
- version: 2.0.0
28
+ version: 3.0.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: vnctools
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - ! '>='
33
+ - - ">="
34
34
  - !ruby/object:Gem::Version
35
35
  version: 0.0.5
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - ! '>='
40
+ - - ">="
41
41
  - !ruby/object:Gem::Version
42
42
  version: 0.0.5
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: rspec
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - ~>
47
+ - - "~>"
48
48
  - !ruby/object:Gem::Version
49
49
  version: '2.5'
50
50
  type: :development
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
- - - ~>
54
+ - - "~>"
55
55
  - !ruby/object:Gem::Version
56
56
  version: '2.5'
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: coveralls
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - ! '>='
61
+ - - ">="
62
62
  - !ruby/object:Gem::Version
63
63
  version: '0'
64
64
  type: :development
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
- - - ! '>='
68
+ - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: rake
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - ~>
75
+ - - "~>"
76
76
  - !ruby/object:Gem::Version
77
77
  version: 0.9.2
78
78
  type: :development
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
- - - ~>
82
+ - - "~>"
83
83
  - !ruby/object:Gem::Version
84
84
  version: 0.9.2
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: pry
87
87
  requirement: !ruby/object:Gem::Requirement
88
88
  requirements:
89
- - - ! '>='
89
+ - - ">="
90
90
  - !ruby/object:Gem::Version
91
91
  version: '0'
92
92
  type: :development
93
93
  prerelease: false
94
94
  version_requirements: !ruby/object:Gem::Requirement
95
95
  requirements:
96
- - - ! '>='
96
+ - - ">="
97
97
  - !ruby/object:Gem::Version
98
98
  version: '0'
99
99
  description: Library to maintain a forking queue of Cucumber processes, with optional
@@ -107,9 +107,9 @@ executables:
107
107
  extensions: []
108
108
  extra_rdoc_files: []
109
109
  files:
110
- - .gitignore
111
- - .rspec
112
- - .travis.yml
110
+ - ".gitignore"
111
+ - ".rspec"
112
+ - ".travis.yml"
113
113
  - Gemfile
114
114
  - LICENSE
115
115
  - README.mdown
@@ -148,17 +148,17 @@ require_paths:
148
148
  - lib
149
149
  required_ruby_version: !ruby/object:Gem::Requirement
150
150
  requirements:
151
- - - ! '>='
151
+ - - ">="
152
152
  - !ruby/object:Gem::Version
153
153
  version: '0'
154
154
  required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  requirements:
156
- - - ! '>='
156
+ - - ">="
157
157
  - !ruby/object:Gem::Version
158
158
  version: '0'
159
159
  requirements: []
160
160
  rubyforge_project: cukeforker
161
- rubygems_version: 2.4.6
161
+ rubygems_version: 2.5.2
162
162
  signing_key:
163
163
  specification_version: 4
164
164
  summary: Library to maintain a forking queue of Cucumber processes