Sha256: 0fb170911c1b091f4a219ba1bdef4f4b58efd96fbece0c15bc4c807c64497ab6
Contents?: true
Size: 1.41 KB
Versions: 3
Compression:
Stored size: 1.41 KB
Contents
# frozen_string_literal: true require File.expand_path('../../test_helper', File.dirname(__FILE__)) class ReportHTMLTest < Minitest::Test def setup super @redis = Redis.new @store = Coverband::Adapters::RedisStore.new(@redis) @store.clear! end test 'generate scov html report' do Coverband.configure do |config| config.reporter = 'scov' config.store = @store config.s3_bucket = nil config.ignore = ['notsomething.rb'] end mock_file_hash @store.send(:save_report, basic_coverage) html = Coverband::Reporters::HTMLReport.new(@store, html: true, open_report: false).report assert_match 'Generated by', html end test 'generate scov report file' do Coverband.configure do |config| config.reporter = 'scov' config.store = @store config.s3_bucket = nil config.ignore = ['notsomething.rb'] end mock_file_hash @store.send(:save_report, basic_coverage) reporter = Coverband::Reporters::HTMLReport.new(@store, html: false, open_report: false) Coverband::Utils::HTMLFormatter.any_instance.expects(:format!).once reporter.report end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
coverband-4.2.0 | test/coverband/reporters/html_test.rb |
coverband-4.2.0.rc3 | test/coverband/reporters/html_test.rb |
coverband-4.2.0.rc2 | test/coverband/reporters/html_test.rb |