Sha256: c231e4a077abbf751bf3dc608375430f2d35041c39cf8fb4b7084843b8ed180c

Contents?: true

Size: 621 Bytes

Versions: 15

Compression:

Stored size: 621 Bytes

Contents

require 'cucumber/formatter/io'
require 'cucumber/html_formatter'
require 'cucumber/formatter/message_builder'

module Cucumber
  module Formatter
    class HTML < MessageBuilder
      include Io

      def initialize(config)
        @io = ensure_io(config.out_stream, config.error_stream)
        @html_formatter = Cucumber::HTMLFormatter::Formatter.new(@io)
        @html_formatter.write_pre_message

        super(config)
      end

      def output_envelope(envelope)
        @html_formatter.write_message(envelope)
        @html_formatter.write_post_message if envelope.test_run_finished
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 3 rubygems

Version Path
cucumber-9.0.1 lib/cucumber/formatter/html.rb
cucumber-9.0.0 lib/cucumber/formatter/html.rb
rubypitaya-3.12.5 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/formatter/html.rb
rubypitaya-3.12.4 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/formatter/html.rb
rubypitaya-3.12.3 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/formatter/html.rb
rubypitaya-3.12.2 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/formatter/html.rb
cucumber-8.0.0 lib/cucumber/formatter/html.rb
cucumber-8.0.0.rc.1 lib/cucumber/formatter/html.rb
phillipug-foodie-0.1.0 .vendor/ruby/3.0.0/gems/cucumber-7.1.0/lib/cucumber/formatter/html.rb
cucumber-7.1.0 lib/cucumber/formatter/html.rb
cucumber-7.0.0 lib/cucumber/formatter/html.rb
cucumber-6.1.0 lib/cucumber/formatter/html.rb
cucumber-6.0.0 lib/cucumber/formatter/html.rb
cucumber-5.3.0 lib/cucumber/formatter/html.rb
cucumber-5.2.0 lib/cucumber/formatter/html.rb