Class: ParallelTests::Cucumber::FailuresLogger
- Inherits:
-
Cucumber::Formatter::Rerun
- Object
- Cucumber::Formatter::Rerun
- ParallelTests::Cucumber::FailuresLogger
- Includes:
- Gherkin::Io
- Defined in:
- lib/parallel_tests/cucumber/failures_logger.rb
Instance Method Summary collapse
- #done ⇒ Object
-
#initialize(runtime, path_or_io, options) ⇒ FailuresLogger
constructor
A new instance of FailuresLogger.
Methods included from Gherkin::Io
Constructor Details
#initialize(runtime, path_or_io, options) ⇒ FailuresLogger
Returns a new instance of FailuresLogger.
9 10 11 12 |
# File 'lib/parallel_tests/cucumber/failures_logger.rb', line 9 def initialize(runtime, path_or_io, ) super @io = prepare_io(path_or_io) end |
Instance Method Details
#done ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/parallel_tests/cucumber/failures_logger.rb', line 14 def done return if @failures.empty? lock_output do @failures.each do |file, lines| lines.each do |line| @io.print "#{file}:#{line} " end end end end |