parallel_tests 2.21.1 → 2.21.2
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 -0
- data/lib/parallel_tests/tasks.rb +7 -3
- 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: 8ec5f3991661d9bdd281990647a6cd80188f165d
|
4
|
+
data.tar.gz: c1edc3dd3c375f731055dd497d25844ec1bcecc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68df979edaa87caa68c1814db08cef3765c77c718299f1f472cc3e7bdb4d06427ee002b0e653d67762c1aa0fa1a5246748e7b683ca52ee099cda1d85d91eff0b
|
7
|
+
data.tar.gz: a84410e263ed0cdf4ea558b6ec23cebdbbf652d79db1fb36ca400d7cbd4483afaa354106a99cb738aa27d47f34c8651ca2f81a820895b60eae42c1b88361c3ac
|
data/Readme.md
CHANGED
@@ -368,6 +368,7 @@ inspired by [pivotal labs](https://blog.pivotal.io/labs/labs/parallelize-your-rs
|
|
368
368
|
- [Jerry](https://github.com/boblington)
|
369
369
|
- [Aleksei Gusev](https://github.com/hron)
|
370
370
|
- [Scott Olsen](https://github.com/scottolsen)
|
371
|
+
- [Andrei Botalov](https://github.com/abotalov)
|
371
372
|
|
372
373
|
[Michael Grosser](http://grosser.it)<br/>
|
373
374
|
michael@grosser.it<br/>
|
data/lib/parallel_tests/tasks.rb
CHANGED
@@ -7,6 +7,11 @@ module ParallelTests
|
|
7
7
|
ENV['RAILS_ENV'] || 'test'
|
8
8
|
end
|
9
9
|
|
10
|
+
def load_lib
|
11
|
+
$LOAD_PATH << File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
12
|
+
require "parallel_tests"
|
13
|
+
end
|
14
|
+
|
10
15
|
def purge_before_load
|
11
16
|
if Gem::Version.new(Rails.version) > Gem::Version.new('4.2.0')
|
12
17
|
Rake::Task.task_defined?('db:test:purge') ? 'db:test:purge' : 'app:db:test:purge'
|
@@ -14,6 +19,7 @@ module ParallelTests
|
|
14
19
|
end
|
15
20
|
|
16
21
|
def run_in_parallel(cmd, options={})
|
22
|
+
load_lib
|
17
23
|
count = " -n #{options[:count]}" unless options[:count].to_s.empty?
|
18
24
|
# Using the relative path to find the binary allow to run a specific version of it
|
19
25
|
executable = File.expand_path("../../../bin/parallel_test", __FILE__)
|
@@ -148,9 +154,7 @@ namespace :parallel do
|
|
148
154
|
desc "Run #{type} in parallel with parallel:#{type}[num_cpus]"
|
149
155
|
task type, [:count, :pattern, :options] do |t, args|
|
150
156
|
ParallelTests::Tasks.check_for_pending_migrations
|
151
|
-
|
152
|
-
$LOAD_PATH << File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
153
|
-
require "parallel_tests"
|
157
|
+
ParallelTests::Tasks.load_lib
|
154
158
|
|
155
159
|
count, pattern, options = ParallelTests::Tasks.parse_args(args)
|
156
160
|
test_framework = {
|
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.21.
|
4
|
+
version: 2.21.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01
|
11
|
+
date: 2018-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parallel
|