parallelized_specs 0.4.41 → 0.4.42

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.41"
15
+ gem.version = "0.4.42"
16
16
  end
17
17
  Jeweler::GemcutterTasks.new
18
18
  rescue LoadError
@@ -496,9 +496,10 @@ class ParallelizedSpecs
496
496
 
497
497
  def self.populate_slowest_specs(spec_durations, file)
498
498
  slowest_specs = []
499
+ ENV["MAX_TIME"] != nil ? max_time = ENV["MAX_TIME"].to_i : max_time = 30
499
500
  spec_durations.each do |spec|
500
501
  time = spec.match(/.*\d/).to_s
501
- if time.to_f >= 30
502
+ if time.to_f >= max_time
502
503
  slowest_specs << spec
503
504
  end
504
505
  end
@@ -26,7 +26,7 @@ module RSpec
26
26
 
27
27
  def write_total_spec_time(total_time, example)
28
28
  lock_output do
29
- @output.puts "#{total_time}*#{example.description}"
29
+ @output.puts "#{total_time}*#{example.description}*#{example_group.location}"
30
30
  end
31
31
  @output.flush
32
32
  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.41"
8
+ s.version = "0.4.42"
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: 93
4
+ hash: 91
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 41
10
- version: 0.4.41
9
+ - 42
10
+ version: 0.4.42
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jake Sorce, Bryan Madsen, Shawn Meredith