parallelized_specs 0.3.96 → 0.3.97
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 +4 -4
- 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.97"
|
16
16
|
end
|
17
17
|
Jeweler::GemcutterTasks.new
|
18
18
|
rescue LoadError
|
data/lib/parallelized_specs.rb
CHANGED
@@ -293,11 +293,11 @@ class ParallelizedSpecs
|
|
293
293
|
end
|
294
294
|
end
|
295
295
|
|
296
|
-
def update_rerun_summary(result, file)
|
296
|
+
def self.update_rerun_summary(result, file)
|
297
297
|
File.open(file, 'a+') { |f| f.puts(result) }
|
298
298
|
end
|
299
299
|
|
300
|
-
def parse_result(result)
|
300
|
+
def self.parse_result(result)
|
301
301
|
puts "this is the result\n#{result}"
|
302
302
|
#can't just use exit code, if specs fail to start it will pass or if a spec isn't found, and sometimes rspec 1 exit codes aren't right
|
303
303
|
rerun_status = result.scan(/\d*[^\D]\d*/).to_a
|
@@ -307,14 +307,14 @@ class ParallelizedSpecs
|
|
307
307
|
@failures = rerun_status.last.to_i
|
308
308
|
end
|
309
309
|
|
310
|
-
def rerun_spec(spec)
|
310
|
+
def self.rerun_spec(spec)
|
311
311
|
puts "#{spec} will be ran and marked as a success if it passes"
|
312
312
|
result = %x[DISPLAY=:99 bundle exec rake spec #{spec}]
|
313
313
|
parse_result(result)
|
314
314
|
result
|
315
315
|
end
|
316
316
|
|
317
|
-
def print_failures(failure_summary)
|
317
|
+
def self.print_failures(failure_summary)
|
318
318
|
file = File.open(failure_summary, "r")
|
319
319
|
content = file.read
|
320
320
|
puts content
|
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.97"
|
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: 209
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 97
|
10
|
+
version: 0.3.97
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jake Sorce, Bryan Madsen, Shawn Meredith
|