parallel_tests 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -79,8 +79,8 @@ You can run any kind of code with -e / --execute
79
79
 
80
80
  <table>
81
81
  <tr><td></td><td>1 Process</td><td>2 Processes</td><td>4 Processes</td></tr>
82
- <tr><td>RSpec spec-suite</td><td>18</td><td>14</td><td>10</td></tr>
83
- <tr><td>Rails-ActionPack</td><td>88</td><td>53</td><td>44</td></tr>
82
+ <tr><td>RSpec spec-suite</td><td>18s</td><td>14s</td><td>10s</td></tr>
83
+ <tr><td>Rails-ActionPack</td><td>88s</td><td>53s</td><td>44s</td></tr>
84
84
  </table>
85
85
 
86
86
  TIPS
@@ -116,4 +116,4 @@ inspired by [pivotal labs](http://pivotallabs.com/users/miked/blog/articles/849-
116
116
 
117
117
  [Michael Grosser](http://pragmatig.wordpress.com)
118
118
  grosser.michael@gmail.com
119
- Hereby placed under public domain, do what you want, just do not hold me accountable...
119
+ Hereby placed under public domain, do what you want, just do not hold me accountable...
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{parallel_tests}
8
- s.version = "0.3.0"
8
+ s.version = "0.3.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Michael Grosser"]
@@ -33,7 +33,7 @@ Gem::Specification.new do |s|
33
33
  "spec/parallel_specs_spec.rb",
34
34
  "spec/parallel_tests_spec.rb",
35
35
  "spec/spec_helper.rb",
36
- "tasks/parallel_specs.rake"
36
+ "tasks/parallel_tests.rake"
37
37
  ]
38
38
  s.homepage = %q{http://github.com/grosser/parallel_tests}
39
39
  s.rdoc_options = ["--charset=UTF-8"]
@@ -78,6 +78,6 @@ describe 'CLI' do
78
78
  write 'xxx6_spec.rb', 'describe("it"){it("should"){sleep 2}}'
79
79
  t = Time.now
80
80
  run_specs :processes => 6
81
- (Time.now - t).should < 5
81
+ (Time.now - t).should < (Parallel.processor_count == 1 ? 10 : 5)
82
82
  end
83
83
  end
@@ -5,7 +5,7 @@ namespace :parallel do
5
5
 
6
6
  Parallel.in_processes(args[:count] ? args[:count].to_i : nil) do |i|
7
7
  puts "Preparing test database #{i + 1}"
8
- `export TEST_ENV_NUMBER=#{ParallelTests.test_env_number(i)} ; rake db:test:prepare`
8
+ exec "export TEST_ENV_NUMBER=#{ParallelTests.test_env_number(i)} ; rake db:test:prepare"
9
9
  end
10
10
  end
11
11
 
@@ -16,7 +16,7 @@ namespace :parallel do
16
16
 
17
17
  Parallel.in_processes(args[:count] ? args[:count].to_i : nil) do |i|
18
18
  puts "Migrating test database #{i + 1}"
19
- `export TEST_ENV_NUMBER=#{ParallelTests.test_env_number(i)} ; rake db:migrate RAILS_ENV=test`
19
+ exec "export TEST_ENV_NUMBER=#{ParallelTests.test_env_number(i)} ; rake db:migrate RAILS_ENV=test"
20
20
  end
21
21
  end
22
22
 
@@ -25,7 +25,7 @@ namespace :parallel do
25
25
  task type, :count, :path_prefix, :options do |t,args|
26
26
  require File.join(File.dirname(__FILE__), '..', 'lib', "parallel_tests")
27
27
  count, prefix, options = ParallelTests.parse_rake_args(args)
28
- sh "#{File.join(File.dirname(__FILE__), '..', 'bin', 'parallel_test')} --type #{type} -n #{count} -p '#{prefix}' -r '#{RAILS_ROOT}' -o '#{options}'"
28
+ exec "#{File.join(File.dirname(__FILE__), '..', 'bin', 'parallel_test')} --type #{type} -n #{count} -p '#{prefix}' -r '#{RAILS_ROOT}' -o '#{options}'"
29
29
  end
30
30
  end
31
31
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 0
9
- version: 0.3.0
8
+ - 1
9
+ version: 0.3.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Michael Grosser
@@ -46,7 +46,7 @@ files:
46
46
  - spec/parallel_specs_spec.rb
47
47
  - spec/parallel_tests_spec.rb
48
48
  - spec/spec_helper.rb
49
- - tasks/parallel_specs.rake
49
+ - tasks/parallel_tests.rake
50
50
  has_rdoc: true
51
51
  homepage: http://github.com/grosser/parallel_tests
52
52
  licenses: []