geordi 0.9.6 → 0.9.7

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.
data/lib/geordi/cuc.rb CHANGED
@@ -15,6 +15,11 @@ module Geordi
15
15
 
16
16
  command = use_parallel_tests? ? parallel_execution_command : serial_execution_command
17
17
 
18
+ if argv.include? "-v"
19
+ puts command
20
+ 2.times { puts }
21
+ end
22
+
18
23
  2.times { puts }
19
24
  exec command
20
25
  end
@@ -34,7 +39,9 @@ module Geordi
34
39
  def parallel_execution_command
35
40
  puts "Using parallel_tests ...\n\n"
36
41
  self.argv = argv - command_line_features
37
- parallel_tests_args = "-t features #{command_line_features.join(' ')}"
42
+ require 'parallel_tests'
43
+ type_arg = Gem::Version.new(::ParallelTests::VERSION) > Gem::Version.new('0.7.0') ? 'cucumber' : 'features'
44
+ parallel_tests_args = "-t #{type_arg} #{command_line_features.join(' ')}"
38
45
  cucumber_args = argv.empty? ? '' : "-o '#{escape_shell_args(argv).join(" ")}'"
39
46
  [use_firefox_for_selenium, 'b', 'parallel_test', parallel_tests_args, cucumber_args].flatten.compact.join(" ")
40
47
  end
@@ -1,3 +1,3 @@
1
1
  module Geordi
2
- VERSION = '0.9.6'
2
+ VERSION = '0.9.7'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geordi
3
3
  version: !ruby/object:Gem::Version
4
- hash: 55
4
+ hash: 53
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 6
10
- version: 0.9.6
9
+ - 7
10
+ version: 0.9.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Henning Koch