parallelized_specs 0.3.73 → 0.3.74
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 +1 -1
- data/lib/parallelized_specs/failures_rerun_logger.rb +1 -1
- data/lib/parallelized_specs.rb +3 -3
- data/parallelized_specs.gemspec +1 -1
- metadata +3 -3
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.
|
15
|
+
gem.version = "0.3.74"
|
16
16
|
end
|
17
17
|
Jeweler::GemcutterTasks.new
|
18
18
|
rescue LoadError
|
@@ -25,7 +25,7 @@ module RSpec
|
|
25
25
|
spec_file = "tmp/parallel_log/spec_count/total_specs#{env_test_number}.txt"
|
26
26
|
failure_file = "tmp/parallel_log/failed_specs/failed_specs#{env_test_number}.txt"
|
27
27
|
before_example_count = File.open(spec_file, &:readline).to_s
|
28
|
-
puts "From the file example count = #{before_example_count}
|
28
|
+
puts "From the file example count = #{before_example_count} from rspec example count = #{example_count}"
|
29
29
|
File.delete(spec_file) if before_example_count.to_i == example_count.to_i
|
30
30
|
puts "Thead Failure count = #{failure_count}"
|
31
31
|
failure_count > 0 ? (File.open(failure_file, 'a+') { |f| f.write(failure_count) }) : (puts "All specs in Thread #{env_test_number} passed")
|
data/lib/parallelized_specs.rb
CHANGED
@@ -116,18 +116,18 @@ class ParallelizedSpecs
|
|
116
116
|
puts ""
|
117
117
|
puts "Took #{Time.now - start} seconds"
|
118
118
|
|
119
|
-
Dir.glob('tmp/parallel_log/spec_count/{*,.*}').
|
119
|
+
Dir.glob('tmp/parallel_log/spec_count/{*,.*}').count == 2 ? (puts "All threads completed") : (abort "One or more threads have failed")
|
120
120
|
|
121
121
|
#exit with correct status code so rake parallel:test && echo 123 works
|
122
122
|
failed = test_results.any? { |result| result[:exit_status] != 0 }
|
123
123
|
puts "entire failed object #{test_results}"
|
124
124
|
puts "this is the exit status of the threads #{failed}"
|
125
125
|
|
126
|
-
if
|
126
|
+
if Dir.glob('tmp/parallel_log/failed_specs/{*,.*}').count > 2 && FileTest.exist?("tmp/parallel_log/rspec.failures")
|
127
127
|
puts "some specs failed, about to start the rerun process\n no more than 9 specs may be rerun and shared specs are not allowed\n...\n..\n."
|
128
128
|
ParallelizedSpecs.rerun()
|
129
129
|
else
|
130
|
-
abort "#{name.capitalize}s Failed" if
|
130
|
+
abort "#{name.capitalize}s Failed" if Dir.glob('tmp/parallel_log/failed_specs/{*,.*}').count > 2
|
131
131
|
end
|
132
132
|
abort "#{name.capitalize}s Failed" if failed
|
133
133
|
puts "marking build as PASSED"
|
data/parallelized_specs.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "parallelized_specs"
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.74"
|
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:
|
4
|
+
hash: 135
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 74
|
10
|
+
version: 0.3.74
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jake Sorce, Bryan Madsen, Shawn Meredith
|