1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
#!/usr/bin/env ruby
# frozen_string_literal: true
require 'optparse'
require 'cucumber/messages'
require 'cucumber/html_formatter'
formatter = Cucumber::HTMLFormatter::Formatter.new($stdout)
option_parser = OptionParser.new do |opts|
opts.on_tail('-h', '--help', 'Show this message') do
puts opts
exit
end
end
options = {}
option_parser.parse!(into: options)
message_enumerator = Cucumber::Messages::NdjsonToMessageEnumerator.new($stdin)
formatter.process_messages(message_enumerator)
|