parallelized_specs 0.3.10 → 0.3.11
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/parallelized_specs.rb +1 -0
- data/parallelized_specs.gemspec +1 -2
- metadata +3 -4
- data/lib/parallelized_specs/trending_example_failures_logger.rb +0 -24
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.11"
|
16
16
|
end
|
17
17
|
Jeweler::GemcutterTasks.new
|
18
18
|
rescue LoadError
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.11
|
data/lib/parallelized_specs.rb
CHANGED
@@ -7,6 +7,7 @@ require 'parallelized_specs/spec_error_count_logger'
|
|
7
7
|
require 'parallelized_specs/spec_start_finish_logger'
|
8
8
|
require 'parallelized_specs/shared_example_failures_logger'
|
9
9
|
require 'parallelized_specs/example_failures_logger'
|
10
|
+
require 'parallelized_specs/trending_example_failures_logger'
|
10
11
|
|
11
12
|
class ParallelizedSpecs
|
12
13
|
VERSION = File.read(File.join(File.dirname(__FILE__), '..', 'VERSION')).strip
|
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.11"
|
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,7 +31,6 @@ 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",
|
35
34
|
"lib/tasks/parallelized_specs.rake",
|
36
35
|
"parallelized_specs.gemspec",
|
37
36
|
"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: 5
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 11
|
10
|
+
version: 0.3.11
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jake Sorce, Bryan Madsen, Shawn Meredith
|
@@ -59,7 +59,6 @@ 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
|
63
62
|
- lib/tasks/parallelized_specs.rake
|
64
63
|
- parallelized_specs.gemspec
|
65
64
|
- spec/integration_spec.rb
|
@@ -1,24 +0,0 @@
|
|
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 && failure != 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
|
-
|