How can I see cucumber table differences with the progress formatter? -
in cucumber, when table steps fail, see following error plus stack trace, there no actual information given table differences.
tables not identical (cucumber::ast::table::different)
how can cucumber show me table differences?
i found following monkey patch worked on cucumber 1.1.9
create support file eg features/support/progress_formatter_extensions.rb
require 'cucumber/formatter/progress' module cucumber module formatter class progress def exception(exception, status) @exception_raised = true if exception.kind_of?(cucumber::ast::table::different) @io.puts(exception.table) @io.flush end end end end end
Comments
Post a Comment