geordi 0.9.6 → 0.9.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/geordi/cuc.rb +8 -1
- data/lib/geordi/version.rb +1 -1
- metadata +3 -3
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
|
-
|
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
|
data/lib/geordi/version.rb
CHANGED
metadata
CHANGED