parallelized_specs 0.3.93 → 0.3.94

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.3.93"
15
+ gem.version = "0.3.94"
16
16
  end
17
17
  Jeweler::GemcutterTasks.new
18
18
  rescue LoadError
@@ -314,6 +314,12 @@ class ParallelizedSpecs
314
314
  result
315
315
  end
316
316
 
317
+ def print_failures(failure_summary)
318
+ file = File.open(failure_summary, "r")
319
+ content = file.read
320
+ puts content
321
+ end
322
+
317
323
  def self.rerun()
318
324
  puts "beginning the failed specs rerun process"
319
325
  rerun_failed_examples = false
@@ -328,6 +334,7 @@ class ParallelizedSpecs
328
334
  when @error_count.between?(1, 9)
329
335
  File.open(filename).each_line do |line|
330
336
  if line =~ /spec\/selenium\/helpers/ || line =~ /spec\/selenium\/shared_examples/
337
+ print_failures("#{RAILS_ROOT}/tmp/parallel_log/error.log")
331
338
  abort "shared specs currently are not eligiable for reruns, marking build as a failure"
332
339
  else
333
340
  rerun_specs.push line
@@ -343,11 +350,13 @@ class ParallelizedSpecs
343
350
 
344
351
  if @examples == 0 and @failures == 0
345
352
  update_rerun_summary(result, failure_summary)
353
+ print_failures(failure_summary)
346
354
  abort "spec didn't actually run, ending rerun process early"
347
355
  end
348
356
 
349
357
  if @examples == 0 #when specs fail to run it exits with 0 examples, 0 failures and won't be matched by the previous regex
350
358
  update_rerun_summary(result, failure_summary)
359
+ print_failures(failure_summary)
351
360
  abort "the spec failed to run on the rerun try, marking build as failed"
352
361
  elsif @failures > 0
353
362
  puts "the example failed again"
@@ -364,6 +373,7 @@ class ParallelizedSpecs
364
373
  when @error_count == 0
365
374
  abort "#{@error_count} errors, but the build failed, errors were not written to the file or there is something else wrong, marking build as a failure"
366
375
  when @error_count > 9
376
+ print_failures("#{RAILS_ROOT}/tmp/parallel_log/error.log")
367
377
  abort "#{@error_count} errors are to many to rerun, marking the build as a failure"
368
378
  else
369
379
  puts "#Total errors #{@error_count}"
@@ -372,9 +382,7 @@ class ParallelizedSpecs
372
382
 
373
383
  if rerun_failed_examples
374
384
  if @rerun_failures.count > 0
375
- File.open(failure_summary).each_line do |line|
376
- puts.line
377
- end
385
+ print_failures(failure_summary)
378
386
  abort "some specs failed on rerun, the build will be marked as failed"
379
387
  elsif @rerun_passes.count >= @error_count
380
388
  puts "all rerun examples passed, rspec will mark this build as passed"
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "parallelized_specs"
8
- s.version = "0.3.93"
8
+ s.version = "0.3.94"
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-01-26"
12
+ s.date = "2013-01-29"
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: 169
4
+ hash: 175
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 93
10
- version: 0.3.93
9
+ - 94
10
+ version: 0.3.94
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-01-26 00:00:00 Z
18
+ date: 2013-01-29 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: parallel