Sha256: 868782507347e8d7567fa05eb1d98e78e37cca8b3872de0b6b48527308a28a41

Contents?: true

Size: 840 Bytes

Versions: 49

Compression:

Stored size: 840 Bytes

Contents

# frozen_string_literal: true

require File.expand_path("../../test_helper", File.dirname(__FILE__))

class HTMLFormatterTest < Minitest::Test
  def setup
    super
    @store = Coverband::Adapters::RedisStore.new(Coverband::Test.redis, redis_namespace: "coverband_test")
  end

  test "generate dynamic content hosted html report" do
    Coverband.configure do |config|
      config.store = @store
      config.ignore = ["notsomething.rb"]
    end
    mock_file_hash
    @store.send(:save_report, basic_coverage_full_path)

    notice = nil
    base_path = "/coverage"
    filtered_report_files = Coverband::Reporters::Base.report(@store, {})
    html = Coverband::Utils::HTMLFormatter.new(filtered_report_files,
      base_path: base_path,
      notice: notice).format_dynamic_html!
    assert_match "loading source data", html
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
coverband-6.1.4 test/coverband/utils/html_formatter_test.rb
coverband-6.1.3 test/coverband/utils/html_formatter_test.rb
coverband-6.1.2 test/coverband/utils/html_formatter_test.rb
coverband-6.1.2.rc.1 test/coverband/utils/html_formatter_test.rb
coverband-6.1.1 test/coverband/utils/html_formatter_test.rb
coverband-6.1.0 test/coverband/utils/html_formatter_test.rb
coverband-6.0.3.rc.4 test/coverband/utils/html_formatter_test.rb
coverband-6.0.3.rc.3 test/coverband/utils/html_formatter_test.rb
coverband-6.0.3.rc.2 test/coverband/utils/html_formatter_test.rb
coverband-6.0.3.rc.1 test/coverband/utils/html_formatter_test.rb
coverband-6.0.2 test/coverband/utils/html_formatter_test.rb
coverband-6.0.1 test/coverband/utils/html_formatter_test.rb
coverband-6.0.1.rc.1 test/coverband/utils/html_formatter_test.rb
coverband-6.0.0 test/coverband/utils/html_formatter_test.rb
coverband-5.2.6.rc.6 test/coverband/utils/html_formatter_test.rb
coverband-5.2.3.2 test/coverband/utils/html_formatter_test.rb
coverband-5.2.6.rc.5 test/coverband/utils/html_formatter_test.rb
coverband-5.2.3.1 test/coverband/utils/html_formatter_test.rb
coverband-5.2.6.rc.4 test/coverband/utils/html_formatter_test.rb
coverband-5.2.6.rc.3 test/coverband/utils/html_formatter_test.rb