parallelized_specs 0.3.15 → 0.3.16
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.lock +11 -11
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/parallelized_specs.rb +1 -1
- data/lib/parallelized_specs/example_failures_logger.rb +2 -2
- data/lib/parallelized_specs/shared_example_failures_logger.rb +2 -6
- data/lib/tasks/parallelized_specs.rake +0 -0
- data/parallelized_specs.gemspec +2 -2
- metadata +4 -4
data/Gemfile.lock
CHANGED
@@ -3,25 +3,25 @@ GEM
|
|
3
3
|
specs:
|
4
4
|
diff-lcs (1.1.3)
|
5
5
|
git (1.2.5)
|
6
|
-
jeweler (1.8.
|
6
|
+
jeweler (1.8.4)
|
7
7
|
bundler (~> 1.0)
|
8
8
|
git (>= 1.2.5)
|
9
9
|
rake
|
10
10
|
rdoc
|
11
|
-
json (1.
|
12
|
-
parallel (0.5.
|
11
|
+
json (1.7.5)
|
12
|
+
parallel (0.5.19)
|
13
13
|
rake (0.9.2.2)
|
14
14
|
rdoc (3.12)
|
15
15
|
json (~> 1.4)
|
16
|
-
rspec (2.
|
17
|
-
rspec-core (~> 2.
|
18
|
-
rspec-expectations (~> 2.
|
19
|
-
rspec-mocks (~> 2.
|
20
|
-
rspec-core (2.
|
21
|
-
rspec-expectations (2.
|
16
|
+
rspec (2.11.0)
|
17
|
+
rspec-core (~> 2.11.0)
|
18
|
+
rspec-expectations (~> 2.11.0)
|
19
|
+
rspec-mocks (~> 2.11.0)
|
20
|
+
rspec-core (2.11.1)
|
21
|
+
rspec-expectations (2.11.3)
|
22
22
|
diff-lcs (~> 1.1.3)
|
23
|
-
rspec-mocks (2.
|
24
|
-
test-unit (2.
|
23
|
+
rspec-mocks (2.11.3)
|
24
|
+
test-unit (2.5.2)
|
25
25
|
|
26
26
|
PLATFORMS
|
27
27
|
ruby
|
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.16"
|
16
16
|
end
|
17
17
|
Jeweler::GemcutterTasks.new
|
18
18
|
rescue LoadError
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.16
|
data/lib/parallelized_specs.rb
CHANGED
@@ -6,8 +6,8 @@ require 'parallelized_specs/spec_error_logger'
|
|
6
6
|
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
|
-
require 'parallelized_specs/trending_example_failures_logger'
|
10
9
|
require 'parallelized_specs/example_failures_logger'
|
10
|
+
require 'parallelized_specs/trending_example_failures_logger'
|
11
11
|
|
12
12
|
class ParallelizedSpecs
|
13
13
|
VERSION = File.read(File.join(File.dirname(__FILE__), '..', 'VERSION')).strip
|
@@ -7,7 +7,7 @@ class ParallelizedSpecs::ExampleRerunFailuresLogger < ParallelizedSpecs::SpecLog
|
|
7
7
|
if example.location != nil
|
8
8
|
unless !!self.example_group.nested_descriptions.to_s.match(/shared/) || !!self.instance_variable_get(:@example_group).examples.last.location.match(/helper/)
|
9
9
|
@failed_examples ||= []
|
10
|
-
@failed_examples << "#{example.location.match(/spec.*\d/).to_s.chomp}
|
10
|
+
@failed_examples << "#{example.location.match(/spec.*\d/).to_s.chomp}"
|
11
11
|
end
|
12
12
|
end
|
13
13
|
else
|
@@ -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.
|
29
|
+
@output.write "#{@failed_examples.to_s}"
|
30
30
|
end
|
31
31
|
end
|
32
32
|
@output.flush
|
@@ -6,21 +6,17 @@ class ParallelizedSpecs::SharedExampleRerunFailuresLogger < ParallelizedSpecs::S
|
|
6
6
|
if RSPEC_1
|
7
7
|
if example.location != nil && example.location.match(/spec.*\d/).to_s != nil
|
8
8
|
@failed_shared_examples ||= {}
|
9
|
-
spec_caller = self.example_group.backtrace.match(/spec.*\d/).to_s
|
10
|
-
failed_shared_spec = example.location.match(/spec.*\d/).to_s
|
11
|
-
|
12
9
|
if !!self.example_group.nested_descriptions.to_s.match(/shared/) || !!self.instance_variable_get(:@example_group).examples.last.location.match(/helper/)
|
10
|
+
spec_caller = example_group.location.match(/spec.*b/).to_s
|
11
|
+
failed_shared_spec = example.location.match(/spec.*\d/).to_s
|
13
12
|
if spec_caller == @failed_shared_examples.keys.last || spec_caller == @failed_shared_examples.keys.first
|
14
13
|
key = @failed_shared_examples.keys.first
|
15
14
|
@failed_shared_examples[key] << "#{failed_shared_spec} "
|
16
15
|
else
|
17
16
|
@failed_shared_examples["#{spec_caller}"] = ["#{failed_shared_spec} "]
|
18
17
|
end
|
19
|
-
|
20
18
|
end
|
21
19
|
end #if example.location is nil block ends
|
22
|
-
else #if not RSPEC_1
|
23
|
-
super
|
24
20
|
end
|
25
21
|
end
|
26
22
|
|
File without changes
|
data/parallelized_specs.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
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.16"
|
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"]
|
12
|
-
s.date = "2012-10-
|
12
|
+
s.date = "2012-10-24"
|
13
13
|
s.email = "jake@instructure.com"
|
14
14
|
s.files = [
|
15
15
|
"Gemfile",
|
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: 51
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 16
|
10
|
+
version: 0.3.16
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jake Sorce, Bryan Madsen, Shawn Meredith
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-10-
|
18
|
+
date: 2012-10-24 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: parallel
|