parallelized_specs 0.4.64 → 0.4.65

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.64"
15
+ gem.version = "0.4.65"
16
16
  end
17
17
  Jeweler::GemcutterTasks.new
18
18
  rescue LoadError
@@ -188,7 +188,6 @@ class ParallelizedSpecs
188
188
  end
189
189
 
190
190
  def self.rerun_initializer()
191
-
192
191
  if @total_failures != 0 && !File.zero?("#{Rails.root}/tmp/parallel_log/rspec.failures") # works on both 1.8.7\1.9.3
193
192
  puts "INFO: some specs failed, about to start the rerun process\n...\n..\n."
194
193
  ParallelizedSpecs.rerun(@total_failures)
@@ -386,7 +385,7 @@ class ParallelizedSpecs
386
385
  puts "INFO: #{spec} will be ran and marked as a success if it passes"
387
386
  @examples = 0
388
387
  @failures = 0
389
- result = %x[DISPLAY=:99 bundle exec rake spec #{spec}]
388
+ result = %x[bundle exec rake spec #{spec}]
390
389
  parse_result(result)
391
390
  result
392
391
  end
@@ -503,22 +502,22 @@ class ParallelizedSpecs
503
502
  @rerun_failures ||= []
504
503
  @rerun_passes ||= []
505
504
 
506
- @rerun_specs.each do |l|
505
+ @rerun_specs.each do |spec|
507
506
  puts "INFO: starting next spec"
508
- result = rerun_spec(l)
507
+ result = rerun_spec(spec)
509
508
 
510
509
  puts "INFO: determining if the spec passed or failed"
511
510
  puts "INFO: examples run = #@examples examples failed = #@failures"
512
511
 
513
512
 
514
513
  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
515
- abort_reruns(3, result, l)
514
+ abort_reruns(3, result, spec)
516
515
  elsif @failures > 0
517
- update_failed(l, result)
516
+ update_failed(spec, result)
518
517
  elsif @examples > 0 && @failures == 0
519
- update_passed(l)
518
+ update_passed(spec)
520
519
  else
521
- abort_reruns(4, result, l)
520
+ abort_reruns(4, result, spec)
522
521
  end
523
522
 
524
523
  puts "INFO: spec finished and has updated rerun state"
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "parallelized_specs"
8
- s.version = "0.4.64"
8
+ s.version = "0.4.65"
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-08-23"
12
+ s.date = "2013-11-12"
13
13
  s.email = "jake@instructure.com"
14
14
  s.files = [
15
15
  "Gemfile",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parallelized_specs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.64
4
+ version: 0.4.65
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-23 00:00:00.000000000 Z
12
+ date: 2013-11-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: parallel
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  version: '0'
85
85
  requirements: []
86
86
  rubyforge_project:
87
- rubygems_version: 1.8.24
87
+ rubygems_version: 1.8.23
88
88
  signing_key:
89
89
  specification_version: 3
90
90
  summary: Run rspec tests in parallel