parallelized_specs 0.3.65 → 0.3.66

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/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.65"
15
+ gem.version = "0.3.66"
16
16
  end
17
17
  Jeweler::GemcutterTasks.new
18
18
  rescue LoadError
@@ -9,7 +9,7 @@ module RSpec
9
9
  env_test_number = ENV['TEST_ENV_NUMBER']
10
10
  env_test_number = 1 if ENV['TEST_ENV_NUMBER'].blank?
11
11
  puts "Thread #{env_test_number.to_s} has #{@example_count} specs"
12
- File.open("tmp/parallel_log/spec_count/total_specs#{env_test_number}.txt", 'a+') { |f| f.puts(@example_count) }
12
+ File.open("tmp/parallel_log/spec_count/total_specs#{env_test_number}.txt", 'a+') { |f| f.write(@example_count) }
13
13
  super
14
14
  end
15
15
 
@@ -22,19 +22,14 @@ module RSpec
22
22
  def dump_summary(duration, example_count, failure_count, pending_count)
23
23
  env_test_number = ENV['TEST_ENV_NUMBER']
24
24
  env_test_number = 1 if ENV['TEST_ENV_NUMBER'].blank?
25
+ before_example_count = File.open("tmp/parallel_log/spec_count/total_specs#{env_test_number}.txt", &:readline).to_s
25
26
 
26
- File.open("tmp/parallel_log/spec_count/total_specs#{env_test_number}.txt").each do |line|
27
- puts "this is thread #{env_test_number} with #{line} expected examples and #{example_count} actual examples"
28
- if line == example_count
29
- @all_specs_ran = true
30
- end
31
- end
27
+ all_specs_ran = true if before_spec_count == example_count
28
+ puts "thread #{env_test_number} ran #{before_example_count} examples expected #{example_count} examples"
32
29
 
33
- if @all_specs_ran == true
34
- File.delete("tmp/parallel_log/spec_count/total_specs#{env_test_number}.txt")
35
- end
30
+ File.delete("tmp/parallel_log/spec_count/total_specs#{env_test_number}.txt") if all_specs_ran
36
31
 
37
- failure_count > 0 ? (File.open("tmp/parallel_log/failed_specs/failed_specs#{env_test_number}.txt", 'a+') { |f| f.puts(failure_count) }) : (puts "All specs in Thread #{env_test_number} passed")
32
+ failure_count > 0 ? (File.open("tmp/parallel_log/failed_specs/failed_specs#{env_test_number}.txt", 'a+') { |f| f.write(failure_count) }) : (puts "All specs in Thread #{env_test_number} passed")
38
33
  puts "Thread #{env_test_number} has completed"
39
34
  end
40
35
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "parallelized_specs"
8
- s.version = "0.3.65"
8
+ s.version = "0.3.66"
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 = "2012-12-11"
12
+ s.date = "2012-12-12"
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: 145
4
+ hash: 151
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 65
10
- version: 0.3.65
9
+ - 66
10
+ version: 0.3.66
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: 2012-12-11 00:00:00 Z
18
+ date: 2012-12-12 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: parallel