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