parallelized_specs 0.3.17 → 0.3.18

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.17"
15
+ gem.version = "0.3.18"
16
16
  end
17
17
  Jeweler::GemcutterTasks.new
18
18
  rescue LoadError
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.17
1
+ 0.3.18
@@ -0,0 +1,29 @@
1
+ require 'parallelized_specs/spec_logger_base'
2
+
3
+
4
+ module RSpec
5
+ class ParallelizedSpecs::FailuresFormatter < ParallelizedSpecs::SpecLoggerBase
6
+ FILENAME = "#{RAILS_ROOT}/rspec.failures"
7
+
8
+ def example_failed(example, counter, failure)
9
+ @rerun_examples ||= []
10
+ @rerun_examples << failure
11
+ f = File.new(FILENAME, "a+")
12
+ f.puts retry_command(example)
13
+ end
14
+
15
+ def dump_summary(*args);end
16
+
17
+ def dump_failures(*args);end
18
+
19
+ def dump_failure(*args);end
20
+
21
+ def dump_pending(*args);end
22
+
23
+ def retry_command(example)
24
+ spec_file = example_group.location.gsub("\"", "\\\"").match(/spec.*b/).to_s
25
+ spec_name = example.description
26
+ "SPEC=#{spec_file} SPEC_OPTS='-e \"#{spec_name}\"'"
27
+ end
28
+ end
29
+ end
@@ -8,6 +8,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
10
  require 'parallelized_specs/trending_example_failures_logger'
11
+ require 'parallelized_specs/failures_rerun_logger'
11
12
 
12
13
  class ParallelizedSpecs
13
14
  VERSION = File.read(File.join(File.dirname(__FILE__), '..', 'VERSION')).strip
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "parallelized_specs"
8
- s.version = "0.3.17"
8
+ s.version = "0.3.18"
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"]
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
19
19
  "VERSION",
20
20
  "lib/parallelized_specs.rb",
21
21
  "lib/parallelized_specs/example_failures_logger.rb",
22
+ "lib/parallelized_specs/failures_rerun_logger.rb",
22
23
  "lib/parallelized_specs/grouper.rb",
23
24
  "lib/parallelized_specs/railtie.rb",
24
25
  "lib/parallelized_specs/runtime_logger.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: 49
4
+ hash: 55
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 17
10
- version: 0.3.17
9
+ - 18
10
+ version: 0.3.18
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jake Sorce, Bryan Madsen, Shawn Meredith
@@ -47,6 +47,7 @@ files:
47
47
  - VERSION
48
48
  - lib/parallelized_specs.rb
49
49
  - lib/parallelized_specs/example_failures_logger.rb
50
+ - lib/parallelized_specs/failures_rerun_logger.rb
50
51
  - lib/parallelized_specs/grouper.rb
51
52
  - lib/parallelized_specs/railtie.rb
52
53
  - lib/parallelized_specs/runtime_logger.rb