parallelized_specs 0.3.14 → 0.3.15
Sign up to get free protection for your applications and to get access to all the features.
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.15"
|
16
16
|
end
|
17
17
|
Jeweler::GemcutterTasks.new
|
18
18
|
rescue LoadError
|
@@ -26,7 +26,7 @@ class ParallelizedSpecs::ExampleRerunFailuresLogger < ParallelizedSpecs::SpecLog
|
|
26
26
|
def dump_summary(*args)
|
27
27
|
lock_output do
|
28
28
|
if RSPEC_1
|
29
|
-
@output.puts "#{@failed_examples.to_s.gsub(/\n/,
|
29
|
+
@output.puts "#{@failed_examples.to_s.gsub(/\n/,"")} "
|
30
30
|
end
|
31
31
|
end
|
32
32
|
@output.flush
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'parallelized_specs/spec_logger_base'
|
2
|
+
|
3
|
+
class ParallelizedSpecs::TrendingExampleFailures < ParallelizedSpecs::SpecLoggerBase
|
4
|
+
|
5
|
+
def example_failed(example, counter, failure)
|
6
|
+
if RSPEC_1
|
7
|
+
if example.location != nil
|
8
|
+
@failed_examples ||= {}
|
9
|
+
@failed_examples["#{example.location.match(/spec.*\d/).to_s}*"] = ["#{example.description}*", "#{failure.header}*", "#{failure.exception.to_s.gsub(/\n/,"")}*", "#{failure.exception.backtrace.to_s.gsub(/\n/,"")}*", "#{Date.today}*"]
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def dump_summary(*args)
|
15
|
+
@hudson_build_info = File.read("#{RAILS_ROOT}/spec/build_info.txt")
|
16
|
+
lock_output do
|
17
|
+
(@failed_examples||{}).each_pair do |example, details|
|
18
|
+
@output.puts "#{example}#{details}#{@hudson_build_info}"
|
19
|
+
end
|
20
|
+
@output.flush
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
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.15"
|
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"]
|
@@ -31,6 +31,7 @@ Gem::Specification.new do |s|
|
|
31
31
|
"lib/parallelized_specs/spec_start_finish_logger.rb",
|
32
32
|
"lib/parallelized_specs/spec_summary_logger.rb",
|
33
33
|
"lib/parallelized_specs/tasks.rb",
|
34
|
+
"lib/parallelized_specs/trending_example_failures_logger.rb",
|
34
35
|
"lib/tasks/parallelized_specs.rake",
|
35
36
|
"parallelized_specs.gemspec",
|
36
37
|
"spec/integration_spec.rb",
|
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: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 15
|
10
|
+
version: 0.3.15
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jake Sorce, Bryan Madsen, Shawn Meredith
|
@@ -59,6 +59,7 @@ files:
|
|
59
59
|
- lib/parallelized_specs/spec_start_finish_logger.rb
|
60
60
|
- lib/parallelized_specs/spec_summary_logger.rb
|
61
61
|
- lib/parallelized_specs/tasks.rb
|
62
|
+
- lib/parallelized_specs/trending_example_failures_logger.rb
|
62
63
|
- lib/tasks/parallelized_specs.rake
|
63
64
|
- parallelized_specs.gemspec
|
64
65
|
- spec/integration_spec.rb
|