parallelized_specs 0.3.75 → 0.3.76

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.3.75"
15
+ gem.version = "0.3.76"
16
16
  end
17
17
  Jeweler::GemcutterTasks.new
18
18
  rescue LoadError
@@ -104,7 +104,7 @@ class ParallelizedSpecs
104
104
  puts "#{num_processes} processes for #{num_tests} #{name}s, ~ #{num_tests / groups.size} #{name}s per process"
105
105
 
106
106
  test_results = Parallel.map(groups, :in_processes => num_processes) do |group|
107
- run_tests(group, groups.index(group), options)
107
+ run_tests(group, groups.index(group), options)
108
108
  end
109
109
 
110
110
  #parse and print results
@@ -116,7 +116,7 @@ class ParallelizedSpecs
116
116
  puts ""
117
117
  puts "Took #{Time.now - start} seconds"
118
118
 
119
- Dir.glob('tmp/parallel_log/spec_count/{*,.*}').count == 2 ? (puts "All threads completed") : (abort "One or more threads have failed") #works on both 1.8.7\1.9.3
119
+ Dir.glob('tmp/parallel_log/spec_count/{*,.*}').count == 2 ? (puts "All threads completed") : (abort "One or more threads have failed") #works on both 1.8.7\1.9.3
120
120
 
121
121
  #exit with correct status code so rake parallel:test && echo 123 works
122
122
 
@@ -124,12 +124,14 @@ class ParallelizedSpecs
124
124
  puts "entire failed object #{test_results}"
125
125
  puts "this is the exit status of the threads #{failed}"
126
126
 
127
- if Dir.glob('tmp/parallel_log/failed_specs/{*,.*}').count > 2 && FileTest.exist?("tmp/parallel_log/rspec.failures") # works on both 1.8.7\1.9.3
127
+ if Dir.glob('tmp/parallel_log/failed_specs/{*,.*}').count > 2 && FileTest.exist?("tmp/parallel_log/rspec.failures") # works on both 1.8.7\1.9.3
128
128
  puts "some specs failed, about to start the rerun process\n no more than 9 specs may be rerun and shared specs are not allowed\n...\n..\n."
129
129
  ParallelizedSpecs.rerun()
130
130
  else
131
- abort "#{name.capitalize}s Failed" if Dir.glob('tmp/parallel_log/failed_specs/{*,.*}').count > 2 || if failed #works on both 1.8.7\1.9.3
131
+ abort "#{name.capitalize}s Failed" if Dir.glob('tmp/parallel_log/failed_specs/{*,.*}').count > 2 || if failed #works on both 1.8.7\1.9.3
132
+ end
132
133
  end
134
+
133
135
  #this is getting run even if the rerun passes and causes triggers abort on successful reruns
134
136
  puts "marking build as PASSED"
135
137
  end
@@ -305,14 +307,14 @@ class ParallelizedSpecs
305
307
 
306
308
  result = %x[DISPLAY=:99 bundle exec rake spec #{l}]
307
309
 
308
- puts "this is the result\n#{result}"
310
+ puts "this is the result\n#{result}"
309
311
  #can't just use exit code, if specs fail to start it will pass or if a spec isn't found, and sometimes rspec 1 exit codes aren't right
310
312
  rerun_status = result.scan(/\d*[^\D]\d*/).to_a
311
- puts "this is the rerun_status\n#{rerun_status}"
313
+ puts "this is the rerun_status\n#{rerun_status}"
312
314
 
313
- example_index = rerun_status.length - 2
314
- @examples = rerun_status[example_index].to_i
315
- @failures = rerun_status.last.to_i
315
+ example_index = rerun_status.length - 2
316
+ @examples = rerun_status[example_index].to_i
317
+ @failures = rerun_status.last.to_i
316
318
 
317
319
  if @examples == 0 and @failures == 0
318
320
  abort "spec didn't actually run, ending rerun process early"
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "parallelized_specs"
8
- s.version = "0.3.75"
8
+ s.version = "0.3.76"
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"]
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: 133
4
+ hash: 139
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 75
10
- version: 0.3.75
9
+ - 76
10
+ version: 0.3.76
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jake Sorce, Bryan Madsen, Shawn Meredith