parallelized_specs 0.4.15 → 0.4.16

Sign up to get free protection for your applications and to get access to all the features.
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.15"
15
+ gem.version = "0.4.16"
16
16
  end
17
17
  Jeweler::GemcutterTasks.new
18
18
  rescue LoadError
@@ -141,7 +141,7 @@ class ParallelizedSpecs
141
141
  puts "INFO: this is the exit status of the rspec suites #{failed}"
142
142
 
143
143
  if Dir.glob("#{RAILS_ROOT}/tmp/parallel_log/failed_specs/{*,.*}").count > 2 && !File.zero?("#{RAILS_ROOT}/tmp/parallel_log/rspec.failures") # works on both 1.8.7\1.9.3
144
- puts "INFO: 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."
144
+ puts "INFO: some specs failed, about to start the rerun process\n INFO: no more than 9 specs may be rerun and shared specs are not allowed\n...\n..\n."
145
145
  ParallelizedSpecs.rerun()
146
146
  else
147
147
  #works on both 1.8.7\1.9.3
@@ -325,12 +325,12 @@ class ParallelizedSpecs
325
325
  puts content
326
326
  end
327
327
 
328
- def self.abort_reruns(code, result = "")
328
+ def self.abort_reruns(code, result = "", l = "")
329
329
  case
330
330
  when code == 1
331
331
  print_failures("#{RAILS_ROOT}/tmp/parallel_log/error.log")
332
332
  abort "SEVERE: shared specs currently are not eligiable for reruns, marking build as a failure"
333
- when code == 2
333
+ when code == 2 # <--- won't ever happen, 2 and 3 are duplicate clean up on refactor
334
334
  update_rerun_summary(l, "FAILED", result)
335
335
  print_failures(@failure_summary, "RERUN")
336
336
  abort "SEVERE: spec didn't actually run, ending rerun process early"
@@ -414,7 +414,7 @@ class ParallelizedSpecs
414
414
  puts "INFO: failures meet rerun criteria \n INFO: rerunning #{@error_count} examples"
415
415
  end
416
416
 
417
- def self.start_reruns()
417
+ def self.start_reruns
418
418
  determine_rerun_eligibility
419
419
 
420
420
  @rerun_failures ||= []
@@ -425,18 +425,19 @@ class ParallelizedSpecs
425
425
  result = rerun_spec(l)
426
426
 
427
427
  puts "INFO: determining if the spec passed or failed"
428
- puts "examples run = #@examples examples failed = #@failures"
428
+ puts "INFO: examples run = #@examples examples failed = #@failures"
429
429
 
430
430
 
431
431
  if @examples == 0 && @failures == 0 #when specs fail to run it exits with 0 examples, 0 failures and won't be matched by the previous regex
432
- abort_reruns(3, result)
432
+ abort_reruns(3, result, l)
433
433
  elsif @failures > 0
434
434
  update_failed(l, result)
435
435
  elsif @examples > 0 && @failures == 0
436
436
  update_passed(l)
437
437
  else
438
- abort_reruns(4, result)
438
+ abort_reruns(4, result, l)
439
439
  end
440
+
440
441
  puts "INFO: spec finished and has updated rerun state"
441
442
  end
442
443
  puts "INFO: reruns have completed calculating if build has passed or failed"
@@ -457,7 +458,6 @@ class ParallelizedSpecs
457
458
  end
458
459
  end
459
460
 
460
-
461
461
  def self.runtime_setup
462
462
  @rerun_specs = []
463
463
  @filename = "#{RAILS_ROOT}/tmp/parallel_log/rspec.failures"
@@ -467,7 +467,7 @@ class ParallelizedSpecs
467
467
  def self.rerun()
468
468
  puts "INFO: beginning the failed specs rerun process"
469
469
  runtime_setup
470
- start_reruns()
470
+ start_reruns
471
471
  end
472
472
  end
473
473
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "parallelized_specs"
8
- s.version = "0.4.15"
8
+ s.version = "0.4.16"
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-07"
12
+ s.date = "2013-02-08"
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: 17
4
+ hash: 47
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 15
10
- version: 0.4.15
9
+ - 16
10
+ version: 0.4.16
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-07 00:00:00 Z
18
+ date: 2013-02-08 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: parallel