parallel_tests 0.16.2 → 0.16.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/Readme.md +1 -0
- data/lib/parallel_tests/tasks.rb +1 -1
- data/lib/parallel_tests/version.rb +1 -1
- data/spec/parallel_tests/tasks_spec.rb +6 -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: 483fe80b7a68cc0f89853183082d652d9a0d4592
|
4
|
+
data.tar.gz: 233b2a01c1f68b53e00a8e0b60c2a728c62aa98c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d546de76b8543b631efbac1feec87a799e025c7f38685b101d5e7ed9cde3d71ec17d13fd0649f35f7a82df35a2af0bb1376cc16ed8e5e128aab792358345900b
|
7
|
+
data.tar.gz: 0e71947a9e6a4f0fde5a44fa873bcdb5dadc577bdad83eed429ea526043c99332ab7de9b26e0d0bac63660b359a54d45305e46dd49b229aa55ad31d6c53e41dc
|
data/Gemfile.lock
CHANGED
data/Readme.md
CHANGED
@@ -290,6 +290,7 @@ inspired by [pivotal labs](http://pivotallabs.com/users/miked/blog/articles/849-
|
|
290
290
|
- [Exoth](https://github.com/Exoth)
|
291
291
|
- [sidfarkus](https://github.com/sidfarkus)
|
292
292
|
- [Colin Harris](https://github.com/aberant)
|
293
|
+
- [Wataru MIYAGUNI](https://github.com/gongo)
|
293
294
|
|
294
295
|
[Michael Grosser](http://grosser.it)<br/>
|
295
296
|
michael@grosser.it<br/>
|
data/lib/parallel_tests/tasks.rb
CHANGED
@@ -8,7 +8,7 @@ module ParallelTests
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def run_in_parallel(cmd, options={})
|
11
|
-
count = " -n #{options[:count]}"
|
11
|
+
count = " -n #{options[:count]}" unless options[:count].to_s.empty?
|
12
12
|
executable = File.expand_path("../../../bin/parallel_test", __FILE__)
|
13
13
|
command = "#{executable} --exec '#{cmd}'#{count}#{' --non-parallel' if options[:non_parallel]}"
|
14
14
|
abort unless system(command)
|
@@ -48,7 +48,7 @@ describe ParallelTests::Tasks do
|
|
48
48
|
describe ".run_in_parallel" do
|
49
49
|
let(:full_path){ File.expand_path("../../../bin/parallel_test", __FILE__) }
|
50
50
|
|
51
|
-
it "
|
51
|
+
it "has the executable" do
|
52
52
|
File.file?(full_path).should == true
|
53
53
|
File.executable?(full_path).should == true
|
54
54
|
end
|
@@ -63,6 +63,11 @@ describe ParallelTests::Tasks do
|
|
63
63
|
ParallelTests::Tasks.run_in_parallel("echo", :count => 123)
|
64
64
|
end
|
65
65
|
|
66
|
+
it "runs without -n with blank :count option" do
|
67
|
+
ParallelTests::Tasks.should_receive(:system).with("#{full_path} --exec 'echo'").and_return true
|
68
|
+
ParallelTests::Tasks.run_in_parallel("echo", :count => "")
|
69
|
+
end
|
70
|
+
|
66
71
|
it "runs command with :non_parallel option" do
|
67
72
|
ParallelTests::Tasks.should_receive(:system).with("#{full_path} --exec 'echo' --non-parallel").and_return true
|
68
73
|
ParallelTests::Tasks.run_in_parallel("echo", :non_parallel => true)
|
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: 0.16.
|
4
|
+
version: 0.16.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parallel
|