Sha256: c6abaf40b7dfcec19e4778dea7a43ef7a9223f9081eaa97ef782336d3a7521e1
Contents?: true
Size: 621 Bytes
Versions: 2
Compression:
Stored size: 621 Bytes
Contents
# frozen_string_literal: true Resque.after_fork do |job| Coverband.start Coverband.runtime_coverage! # no reason to miss coverage on a first resque job Coverband::Collectors::Delta.set_default_results end Resque.before_first_fork do Coverband.eager_loading_coverage! Coverband.configuration.background_reporting_enabled = false Coverband::Background.stop Coverband::Collectors::Coverage.instance.report_coverage(true) end module Coverband module ResqueWorker def perform super ensure Coverband.report_coverage(true) end end end Resque::Job.prepend(Coverband::ResqueWorker)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
coverband-4.2.0 | lib/coverband/integrations/resque.rb |
coverband-4.2.0.rc3 | lib/coverband/integrations/resque.rb |