parallel_tests 2.16.0 → 2.16.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Readme.md +1 -1
- data/lib/parallel_tests/gherkin/runner.rb +2 -2
- data/lib/parallel_tests/rspec/runner.rb +1 -1
- data/lib/parallel_tests/tasks.rb +4 -4
- data/lib/parallel_tests/test/runner.rb +0 -1
- data/lib/parallel_tests/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b2003719fa857ffb865c2c178bff803728424a1
|
4
|
+
data.tar.gz: ee97e7c69df23ea4fe53a10057370f30d0bd22eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8cb151d3a41c56cbf4b3d873e29e1a48864d66748a803767a028aa112fa70813c656596fdbf5a0e529b9afde36d50c284427516ed7431cd20351269f68346fa
|
7
|
+
data.tar.gz: 5a97484869c279c8146cdde8b809b7f29a3f91302786dca569c79476e2cd74d2d108a9af6b69983a7c076bf52fd8956847cc187ff868779bd8ed50f5914a1904
|
data/Readme.md
CHANGED
@@ -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}"
|
data/lib/parallel_tests/tasks.rb
CHANGED
@@ -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
|
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
|
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
|
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.
|
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-
|
11
|
+
date: 2017-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parallel
|