parallelized_specs 0.4.12 → 0.4.13
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/parallelized_specs.rb +7 -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.4.
|
15
|
+
gem.version = "0.4.13"
|
16
16
|
end
|
17
17
|
Jeweler::GemcutterTasks.new
|
18
18
|
rescue LoadError
|
data/lib/parallelized_specs.rb
CHANGED
@@ -310,8 +310,8 @@ class ParallelizedSpecs
|
|
310
310
|
def self.rerun_spec(spec)
|
311
311
|
puts "INFO: #{spec} will be ran and marked as a success if it passes"
|
312
312
|
result = ""
|
313
|
-
@examples =
|
314
|
-
@failures =
|
313
|
+
@examples = 0
|
314
|
+
@failures = 0
|
315
315
|
result = %x[DISPLAY=:99 bundle exec rake spec #{spec}]
|
316
316
|
parse_result(result)
|
317
317
|
result
|
@@ -419,7 +419,11 @@ class ParallelizedSpecs
|
|
419
419
|
@rerun_specs.each do |l|
|
420
420
|
result = rerun_spec(l)
|
421
421
|
|
422
|
-
|
422
|
+
puts "INFO: determining if the spec passed or failed"
|
423
|
+
puts "examples run = #@examples examples failed = #@failures"
|
424
|
+
|
425
|
+
|
426
|
+
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
|
423
427
|
abort_reruns(3, result)
|
424
428
|
elsif @failures > 0
|
425
429
|
update_failed(l, result)
|
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.4.
|
8
|
+
s.version = "0.4.13"
|
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: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 13
|
10
|
+
version: 0.4.13
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jake Sorce, Bryan Madsen, Shawn Meredith
|