Sha256: 3367c96c71cd228d05efc1b70ba212f4e7cf5c5965c8fd4a1827aff071d78bc6
Contents?: true
Size: 1.19 KB
Versions: 15
Compression:
Stored size: 1.19 KB
Contents
# frozen_string_literal: true namespace :coverband do # handles configuring in require => false and COVERBAND_DISABLE_AUTO_START cases Coverband.configure unless Coverband.configured? desc 'report runtime Coverband code coverage' task :coverage do if Coverband.configuration.reporter == 'scov' Coverband::Reporters::HTMLReport.new(Coverband.configuration.store).report else Coverband::Reporters::ConsoleReport.report(Coverband.configuration.store) end end desc 'report runtime Coverband code coverage' task :coverage_server do Rake.application['environment'].invoke if Rake::Task.task_defined?('environment') Rack::Server.start app: Coverband::Reporters::Web.new, Port: ENV.fetch('COVERBAND_COVERAGE_PORT', 1022).to_i end ### # clear data helpful for development or after configuration issues ### desc 'reset Coverband coverage data, helpful for development, debugging, etc' task :clear do Coverband.configuration.store.clear! end ### # Updates the data in the coverband store from one format to another ### desc 'upgrade previous Coverband datastore to latest format' task :migrate do Coverband.configuration.store.migrate! end end
Version data entries
15 entries across 15 versions & 1 rubygems