Skip to content

Commit

Permalink
Merge pull request #564 from fatkodima/fix-clear-tasks
Browse files Browse the repository at this point in the history
Load trackers for `clear_tracker` rake task
  • Loading branch information
danmayer authored Oct 29, 2024
2 parents b31f5c0 + 95a398d commit 204d2d8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/coverband/utils/tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@
###
desc "reset Coverband trackers data (view, routes, translations, etc), helpful for development, debugging, etc"
task :clear_tracker do
# Load rails-related trackers, if the gem is used in a rails app.
Coverband.configuration.railtie! if defined?(Rails::Railtie)

trackers = Coverband.configuration.trackers
trackers.each(&:reset_recordings)
end
Expand Down

0 comments on commit 204d2d8

Please sign in to comment.