Class: ParallelizedSpecs::FailuresFormatter
Constant Summary
SpecLoggerBase::RSPEC_1
Instance Method Summary
collapse
#close, #initialize, #lock_output
Instance Method Details
#dump_failure(*args) ⇒ Object
21
22
23
|
# File 'lib/parallelized_specs/failures_rerun_logger.rb', line 21
def dump_failure(*args)
;
end
|
#dump_failures(*args) ⇒ Object
17
18
19
|
# File 'lib/parallelized_specs/failures_rerun_logger.rb', line 17
def dump_failures(*args)
;
end
|
#dump_pending(*args) ⇒ Object
25
26
27
|
# File 'lib/parallelized_specs/failures_rerun_logger.rb', line 25
def dump_pending(*args)
;
end
|
#dump_summary(duration, example_count, failure_count, pending_count) ⇒ Object
13
14
15
|
# File 'lib/parallelized_specs/failures_rerun_logger.rb', line 13
def dump_summary(duration, example_count, failure_count, pending_count)
;
end
|
#example_failed(example, counter, failure) ⇒ Object
7
8
9
10
11
|
# File 'lib/parallelized_specs/failures_rerun_logger.rb', line 7
def example_failed(example, counter, failure)
lock_output do
@output.puts retry_command(example)
end
end
|
#retry_command(example) ⇒ Object
30
31
32
33
34
35
|
# File 'lib/parallelized_specs/failures_rerun_logger.rb', line 30
def retry_command(example)
puts "Storing #{example_group.location} for a post build rerun attempt"
spec_file = example_group.location.match(/.*rb/).to_s
spec_name = example.description
"SPEC=#{spec_file} SPEC_OPTS=\"-e \\\"#{spec_name}\\\"\""
end
|