geordi 1.2.2 → 1.2.3

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTk2YTFmM2FlNWE5ZWU2YWU2OGIwNjRhZThhYTZhYzE1OGI3ZmVkNA==
4
+ ZTRmNjIxM2QxMjA3MjdlZTZiNDAzMDUyNzVjNDY0YTkyM2RjNDFkYQ==
5
5
  data.tar.gz: !binary |-
6
- OWJiMjlmNWQzNTdhMmI1NTMyOTc5NTBhYWVlN2Q2Y2M3ZjBjNDMxMA==
6
+ MjZmNjkxNWI4OWQ1ZGM2ZGQyMjhkNjAxOTBmMjU2Y2RlODM1MmQwZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YmI5ZDYzMWZkNWRmYzAxZDBkZjFiOTNkMThjZDFlNjUyMDlhNWNhMmJiNGFh
10
- MzJiZGE5Zjc0MjhkZTkyYjgxYjU1ODExOGMyMjM3ZmNjZmI3Mzk1MGFhNDc1
11
- NWM4ZTNjYWEwYzRhYmI5MTNkMDcxMjAwMmUyMDFhOWM4YTA3OWI=
9
+ ODgzN2M4YzgwZDAzOTg0ZWQ0ZmE1ZGYxNzhkYmFlMDE0MjYxZmRmNThjNWNi
10
+ ZDIxMTkzOWFjNDUzZmEwOGQ3ZjAzMTg4YTE1NWVkZTZiODVjMDQ1OTliZmM1
11
+ ZWM1MmI5YWU5OTZmZTU4NjdjZjc3NjcxZWM2MTg4YzAzODRmZTc=
12
12
  data.tar.gz: !binary |-
13
- NGQzZTJkNGJkMmY3Y2FjYmFiNGFkNTg4YzVmMmY0NmM2OTViOTNhN2FlYmNm
14
- Nzg5NjUyZTcxMTRhNjNkZTZiMjE4NDM5MGYzNjFjMThkNGYzYzVmMTQ0YmYy
15
- MDUyZmE4ODg0NGYxNmY1YWE2ZjE5ZmFkNjkwN2Y2MzA5ZWIwMDA=
13
+ Zjk4MGFmNTNhNDBlZWNiZDhlNzM1ZGMwZmM4ZTZjMTEzYzEzOTUxNGVjODE0
14
+ ZGNiYWMyODIwMTc4MTgwMjlhOTA5OWJkN2NmOGQyMzQ0N2U0MzRjYjc4OTM5
15
+ NzY1MGJlOWY5ODNlOWUyNmMxNzdmZjZiZDMwMjEwMmI0OGFiMmY=
@@ -25,13 +25,19 @@ def cucumber(*files)
25
25
  invoke_cmd 'bundle_install'
26
26
 
27
27
  announce 'Running features'
28
- files << '--format' << 'pretty' << '-b' if options.debug
29
- (1 + options.rerun).times do |i|
30
- return true if Geordi::Cucumber.new.run(files, :verbose => options.verbose)
28
+ files << '--format' << 'pretty' << '--backtrace' if options.debug
31
29
 
32
- announce "Rerun ##{ i + 1 } of #{ options.rerun }"
30
+ # Normal run
31
+ unless Geordi::Cucumber.new.run(files, :verbose => options.verbose)
32
+
33
+ # Reruns
34
+ (1 + options.rerun).times do |i|
35
+ fail 'Features failed.' if (i == options.rerun) # All reruns done?
36
+
37
+ announce "Rerun ##{ i + 1 } of #{ options.rerun }"
38
+ break if Geordi::Cucumber.new.run(%w[--profile rerun], :verbose => options.verbose)
39
+ end
33
40
  end
34
- fail 'Features failed.' # Give up
35
41
 
36
42
  else
37
43
  note 'Cucumber not employed.'
@@ -184,10 +184,9 @@ module Geordi
184
184
  end
185
185
 
186
186
  def features_can_run_with_parallel_tests?(features)
187
- not features.any?{ |feature| feature.include? ":" }
187
+ features.none? { |f| f.include? ':' }
188
188
  end
189
189
 
190
-
191
190
  # Check if cucumber_spinner is available
192
191
  def spinner_available?
193
192
  @spinner_available ||= File.exists?('Gemfile') && File.open('Gemfile').read.scan(/cucumber_spinner/).any?
@@ -210,7 +209,9 @@ module Geordi
210
209
  end
211
210
 
212
211
  def use_parallel_tests?
213
- parallel_tests_available? && features_can_run_with_parallel_tests?(features_to_run) && features_to_run.size != 1
212
+ not(argv.include?('rerun') or features_to_run.size == 1) &&
213
+ parallel_tests_available? &&
214
+ features_can_run_with_parallel_tests?(features_to_run)
214
215
  end
215
216
 
216
217
  def try_and_start_vnc
@@ -1,3 +1,3 @@
1
1
  module Geordi
2
- VERSION = '1.2.2'
2
+ VERSION = '1.2.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geordi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henning Koch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-23 00:00:00.000000000 Z
11
+ date: 2016-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor