You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- # frozen_string_literal: true
-
- require 'cucumber/formatter/io'
- require 'cucumber/formatter/message_builder'
-
- module Cucumber
- module Formatter
- # The formatter used for <tt>--format message</tt>
- class Message < MessageBuilder
- include Io
-
- def initialize(config)
- @io = ensure_io(config.out_stream, config.error_stream)
- super(config)
- end
-
- def output_envelope(envelope)
- @io.write(envelope.to_json)
- @io.write("\n")
- end
- end
- end
- end
|