parallel_tests 2.16.0 → 2.16.1

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b379a6559260bc09ecbdf2f662561213b1f765d4
4
- data.tar.gz: 7589375b613e87e4eab4753cc7694afb46d3de4b
3
+ metadata.gz: 2b2003719fa857ffb865c2c178bff803728424a1
4
+ data.tar.gz: ee97e7c69df23ea4fe53a10057370f30d0bd22eb
5
5
  SHA512:
6
- metadata.gz: 8531b811305f22ae1206776d2068fb99699f65a0458376036b1efcb661176032d2ae46068f6c6d1a964dfa9066e627ff7698de14b43112bae834f8639bc3fe18
7
- data.tar.gz: cbd83e152eb227ad954fadd7b97c85d3c7209d7cadf142add277e55c2c155ae95edfd0afc6b5917b04ad1ed4fbbb3a75a4fbecc05d40dab601b0b4ba3c171e9a
6
+ metadata.gz: d8cb151d3a41c56cbf4b3d873e29e1a48864d66748a803767a028aa112fa70813c656596fdbf5a0e529b9afde36d50c284427516ed7431cd20351269f68346fa
7
+ data.tar.gz: 5a97484869c279c8146cdde8b809b7f29a3f91302786dca569c79476e2cd74d2d108a9af6b69983a7c076bf52fd8956847cc187ff868779bd8ed50f5914a1904
data/Readme.md CHANGED
@@ -282,7 +282,7 @@ TODO
282
282
  ====
283
283
  - fix tests vs cucumber >= 1.2 `unknown option --format`
284
284
  - add unit tests for cucumber runtime formatter
285
- - make windows compatible
285
+ - fix windows bugs / get windows CI green
286
286
 
287
287
  Authors
288
288
  ====
@@ -100,11 +100,11 @@ module ParallelTests
100
100
  def determine_executable
101
101
  case
102
102
  when File.exist?("bin/#{name}")
103
- "bin/#{name}"
103
+ ParallelTests.with_ruby_binary("bin/#{name}")
104
104
  when ParallelTests.bundler_enabled?
105
105
  "bundle exec #{name}"
106
106
  when File.file?("script/#{name}")
107
- "script/#{name}"
107
+ ParallelTests.with_ruby_binary("script/#{name}")
108
108
  else
109
109
  "#{name}"
110
110
  end
@@ -16,7 +16,7 @@ module ParallelTests
16
16
  def determine_executable
17
17
  cmd = case
18
18
  when File.exist?("bin/rspec")
19
- "bin/rspec"
19
+ ParallelTests.with_ruby_binary("bin/rspec")
20
20
  when ParallelTests.bundler_enabled?
21
21
  cmd = (run("bundle show rspec-core") =~ %r{Could not find gem.*} ? "spec" : "rspec")
22
22
  "bundle exec #{cmd}"
@@ -15,9 +15,9 @@ module ParallelTests
15
15
 
16
16
  def run_in_parallel(cmd, options={})
17
17
  count = " -n #{options[:count]}" unless options[:count].to_s.empty?
18
+ # Using the relative path to find the binary allow to run a specific version of it
18
19
  executable = File.expand_path("../../../bin/parallel_test", __FILE__)
19
- command = "#{Shellwords.escape executable} --exec '#{cmd}'#{count}#{' --non-parallel' if options[:non_parallel]}"
20
- command = ParallelTests.with_ruby_binary(command)
20
+ command = "#{ParallelTests.with_ruby_binary(Shellwords.escape(executable))} --exec '#{cmd}'#{count}#{' --non-parallel' if options[:non_parallel]}"
21
21
  abort unless system(command)
22
22
  end
23
23
 
@@ -158,13 +158,13 @@ namespace :parallel do
158
158
  if test_framework == 'spinach'
159
159
  type = 'features'
160
160
  end
161
+ # Using the relative path to find the binary allow to run a specific version of it
161
162
  executable = File.join(File.dirname(__FILE__), '..', '..', 'bin', 'parallel_test')
162
163
 
163
- command = "#{Shellwords.escape executable} #{type} --type #{test_framework} " \
164
+ command = "#{ParallelTests.with_ruby_binary(Shellwords.escape(executable))} #{type} --type #{test_framework} " \
164
165
  "-n #{count} " \
165
166
  "--pattern '#{pattern}' " \
166
167
  "--test-options '#{options}'"
167
- command = ParallelTests.with_ruby_binary(command)
168
168
  abort unless system(command) # allow to chain tasks e.g. rake parallel:spec parallel:features
169
169
  end
170
170
  end
@@ -77,7 +77,6 @@ module ParallelTests
77
77
  )
78
78
  cmd = "nice #{cmd}" if options[:nice]
79
79
  cmd = "#{cmd} 2>&1" if options[:combine_stderr]
80
- cmd = ParallelTests.with_ruby_binary(cmd)
81
80
 
82
81
  puts cmd if options[:verbose]
83
82
 
@@ -1,3 +1,3 @@
1
1
  module ParallelTests
2
- VERSION = Version = '2.16.0'
2
+ VERSION = Version = '2.16.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parallel_tests
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.16.0
4
+ version: 2.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-22 00:00:00.000000000 Z
11
+ date: 2017-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel