parallelized_specs 0.4.11 → 0.4.12

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.
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ begin
12
12
  gem.email = "jake@instructure.com"
13
13
  gem.homepage = "http://github.com/jakesorce/#{gem.name}"
14
14
  gem.authors = "Jake Sorce, Bryan Madsen, Shawn Meredith"
15
- gem.version = "0.4.11"
15
+ gem.version = "0.4.12"
16
16
  end
17
17
  Jeweler::GemcutterTasks.new
18
18
  rescue LoadError
@@ -115,25 +115,25 @@ class ParallelizedSpecs
115
115
 
116
116
  #report total time taken
117
117
  puts ""
118
- puts "Took #{Time.now - start} seconds"
118
+ puts "INFO: Took #{Time.now - start} seconds"
119
119
 
120
120
  if Dir.glob("#{RAILS_ROOT}/tmp/parallel_log/spec_count/{*,.*}").count == 2 && Dir.glob("#{RAILS_ROOT}/tmp/parallel_log/thread_started/{*,.*}").count == num_processes + 2
121
121
  (puts "INFO: All threads completed")
122
122
  elsif Dir.glob("#{RAILS_ROOT}/tmp/parallel_log/thread_started/{*,.*}").count != num_processes + 2
123
- abort "SEVERE: one or more threads didn't get started by rspec"
123
+ abort "SEVERE: one or more threads didn't get started by rspec, this may be caused by a syntax issue in specs, check logs right before specs start running"
124
124
  else
125
125
  threads = Dir["#{RAILS_ROOT}/tmp/parallel_log/spec_count/*"]
126
126
  threads.each do |t|
127
127
  failed_thread = t.match(/\d/).to_s
128
128
  if failed_thread == "1"
129
- puts "Thread 1 last spec to start running"
129
+ puts "INFO: Thread 1 last spec to start running"
130
130
  puts IO.readlines("#{RAILS_ROOT}/tmp/parallel_log/thread_.log")[-1]
131
131
  else
132
- puts "Thread #{failed_thread} last spec to start running"
132
+ puts "INFO: Thread #{failed_thread} last spec to start running"
133
133
  puts IO.readlines("#{RAILS_ROOT}/tmp/parallel_log/thread_#{failed_thread}.log")[-1]
134
134
  end
135
135
  end
136
- abort "SEVERE: One or more threads have failed to complete, see above logging information for details" #works on both 1.8.7\1.9.3
136
+ abort "SEVERE: One or more threads have failed to complete, this may be caused by a rspec runtime crashing prematurely" #works on both 1.8.7\1.9.3
137
137
  end
138
138
  #exit with correct status code so rake parallel:test && echo 123 works
139
139
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "parallelized_specs"
8
- s.version = "0.4.11"
8
+ s.version = "0.4.12"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jake Sorce, Bryan Madsen, Shawn Meredith"]
12
- s.date = "2013-02-06"
12
+ s.date = "2013-02-07"
13
13
  s.email = "jake@instructure.com"
14
14
  s.files = [
15
15
  "Gemfile",
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parallelized_specs
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 11
10
- version: 0.4.11
9
+ - 12
10
+ version: 0.4.12
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jake Sorce, Bryan Madsen, Shawn Meredith
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-02-06 00:00:00 Z
18
+ date: 2013-02-07 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: parallel