danmayer / coverband

Ruby production code coverage collection and reporting (line of code usage)
https://github.com/danmayer/coverband
MIT License
2.46k stars 157 forks source link

Redis namespace is not used by ViewTracker #539

Closed eliotsykes closed 3 months ago

eliotsykes commented 3 months ago

Describe the bug The redis_namespace configuration is ignored by ViewTracker.

Additional context Modifying redis_namespace is useful to start recording new coverage data, whilst keeping the old data around. It is also a useful technique to ignore in-memory coverage data on servers that have not been restarted with a new version of the codebase.

I noticed that changing redis_namespace does not have the desired effect to record new coverage data for views.

The issue appears to be in AbstractTracker#class_key which does not use redis_namespace.

danmayer commented 3 months ago

ok, fixed this in the most recent commit 437a8db85b3ea18b825991dabbc7e75b202c0a7c