parallelized_specs 0.4.81 → 0.4.82

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/Gemfile CHANGED
@@ -7,5 +7,4 @@ group :dev do
7
7
  gem 'rspec', '>=2.4'
8
8
  gem 'rake'
9
9
  gem 'jeweler'
10
- gem 'debugger'
11
10
  end
@@ -1,13 +1,6 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- columnize (0.3.6)
5
- debugger (1.6.2)
6
- columnize (>= 0.3.1)
7
- debugger-linecache (~> 1.2.0)
8
- debugger-ruby_core_source (~> 1.2.3)
9
- debugger-linecache (1.2.0)
10
- debugger-ruby_core_source (1.2.3)
11
4
  diff-lcs (1.1.3)
12
5
  git (1.2.5)
13
6
  jeweler (1.8.4)
@@ -34,7 +27,6 @@ PLATFORMS
34
27
  ruby
35
28
 
36
29
  DEPENDENCIES
37
- debugger
38
30
  jeweler
39
31
  parallel
40
32
  rake
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.81"
15
+ gem.version = "0.4.82"
16
16
  end
17
17
  Jeweler::GemcutterTasks.new
18
18
  rescue LoadError
@@ -385,7 +385,6 @@ class ParallelizedSpecs
385
385
  puts "INFO: #{spec} will be ran and marked as a success if it passes"
386
386
  @examples = 0
387
387
  @failures = 0
388
- `rm config/selenium.yml || :` #uses ruby driver for reruns
389
388
  result = %x[export DISPLAY=:20.0 firefox && bundle exec rake spec #{spec}]
390
389
  parse_result(result)
391
390
  result
@@ -503,22 +502,22 @@ class ParallelizedSpecs
503
502
  @rerun_failures ||= []
504
503
  @rerun_passes ||= []
505
504
 
506
- @rerun_specs.each do |spec|
505
+ @rerun_specs.each do |l|
507
506
  puts "INFO: starting next spec"
508
- result = rerun_spec(spec)
507
+ result = rerun_spec(l)
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, spec)
514
+ abort_reruns(3, result, l)
516
515
  elsif @failures > 0
517
- update_failed(spec, result)
516
+ update_failed(l, result)
518
517
  elsif @examples > 0 && @failures == 0
519
- update_passed(spec)
518
+ update_passed(l)
520
519
  else
521
- abort_reruns(4, result, spec)
520
+ abort_reruns(4, result, l)
522
521
  end
523
522
 
524
523
  puts "INFO: spec finished and has updated rerun state"
@@ -1,5 +1,7 @@
1
1
  require 'net/http'
2
2
  require 'rubygems'
3
+ require 'active_record'
4
+ require 'date'
3
5
  require 'json'
4
6
 
5
7
  @user = 'user@fireworks.boom'
@@ -61,4 +63,4 @@ end
61
63
 
62
64
  build_data
63
65
  thepost = post
64
- puts thepost
66
+ puts thepost
@@ -31,7 +31,13 @@ class ParallelizedSpecs::TrendingExampleFailures < ParallelizedSpecs::SpecLogger
31
31
  end
32
32
 
33
33
  def dump_summary(*args)
34
- lock_output do
34
+
35
+ if File.exists?("#{Rails.root}/spec/build_info.txt")
36
+ @hudson_build_info = File.read("#{Rails.root}/spec/build_info.txt")
37
+ else
38
+ @hudson_build_info = "no*hudson build*info"
39
+ end
40
+
35
41
  [@failed_examples, @passed_examples].each do |example_results|
36
42
  unless example_results.empty?
37
43
  (example_results).each_pair do |example, details|
@@ -41,5 +47,4 @@ class ParallelizedSpecs::TrendingExampleFailures < ParallelizedSpecs::SpecLogger
41
47
  end
42
48
  @output.flush
43
49
  end
44
- end
45
- end
50
+ end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "parallelized_specs"
8
- s.version = "0.4.81"
8
+ s.version = "0.4.82"
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,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.81
4
+ version: 0.4.82
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: