parallelized_specs 0.4.81 → 0.4.82
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/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,13 +1,6 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
columnize (0.3.6)
|
5
|
-
debugger (1.6.2)
|
6
|
-
columnize (>= 0.3.1)
|
7
|
-
debugger-linecache (~> 1.2.0)
|
8
|
-
debugger-ruby_core_source (~> 1.2.3)
|
9
|
-
debugger-linecache (1.2.0)
|
10
|
-
debugger-ruby_core_source (1.2.3)
|
11
4
|
diff-lcs (1.1.3)
|
12
5
|
git (1.2.5)
|
13
6
|
jeweler (1.8.4)
|
@@ -34,7 +27,6 @@ PLATFORMS
|
|
34
27
|
ruby
|
35
28
|
|
36
29
|
DEPENDENCIES
|
37
|
-
debugger
|
38
30
|
jeweler
|
39
31
|
parallel
|
40
32
|
rake
|
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.82"
|
16
16
|
end
|
17
17
|
Jeweler::GemcutterTasks.new
|
18
18
|
rescue LoadError
|
data/lib/parallelized_specs.rb
CHANGED
@@ -385,7 +385,6 @@ class ParallelizedSpecs
|
|
385
385
|
puts "INFO: #{spec} will be ran and marked as a success if it passes"
|
386
386
|
@examples = 0
|
387
387
|
@failures = 0
|
388
|
-
`rm config/selenium.yml || :` #uses ruby driver for reruns
|
389
388
|
result = %x[export DISPLAY=:20.0 firefox && bundle exec rake spec #{spec}]
|
390
389
|
parse_result(result)
|
391
390
|
result
|
@@ -503,22 +502,22 @@ class ParallelizedSpecs
|
|
503
502
|
@rerun_failures ||= []
|
504
503
|
@rerun_passes ||= []
|
505
504
|
|
506
|
-
@rerun_specs.each do |
|
505
|
+
@rerun_specs.each do |l|
|
507
506
|
puts "INFO: starting next spec"
|
508
|
-
result = rerun_spec(
|
507
|
+
result = rerun_spec(l)
|
509
508
|
|
510
509
|
puts "INFO: determining if the spec passed or failed"
|
511
510
|
puts "INFO: examples run = #@examples examples failed = #@failures"
|
512
511
|
|
513
512
|
|
514
513
|
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
|
515
|
-
abort_reruns(3, result,
|
514
|
+
abort_reruns(3, result, l)
|
516
515
|
elsif @failures > 0
|
517
|
-
update_failed(
|
516
|
+
update_failed(l, result)
|
518
517
|
elsif @examples > 0 && @failures == 0
|
519
|
-
update_passed(
|
518
|
+
update_passed(l)
|
520
519
|
else
|
521
|
-
abort_reruns(4, result,
|
520
|
+
abort_reruns(4, result, l)
|
522
521
|
end
|
523
522
|
|
524
523
|
puts "INFO: spec finished and has updated rerun state"
|
@@ -31,7 +31,13 @@ class ParallelizedSpecs::TrendingExampleFailures < ParallelizedSpecs::SpecLogger
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def dump_summary(*args)
|
34
|
-
|
34
|
+
|
35
|
+
if File.exists?("#{Rails.root}/spec/build_info.txt")
|
36
|
+
@hudson_build_info = File.read("#{Rails.root}/spec/build_info.txt")
|
37
|
+
else
|
38
|
+
@hudson_build_info = "no*hudson build*info"
|
39
|
+
end
|
40
|
+
|
35
41
|
[@failed_examples, @passed_examples].each do |example_results|
|
36
42
|
unless example_results.empty?
|
37
43
|
(example_results).each_pair do |example, details|
|
@@ -41,5 +47,4 @@ class ParallelizedSpecs::TrendingExampleFailures < ParallelizedSpecs::SpecLogger
|
|
41
47
|
end
|
42
48
|
@output.flush
|
43
49
|
end
|
44
|
-
|
45
|
-
end
|
50
|
+
end
|
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.82"
|
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"]
|