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

Unable to ignore view files with `config.ignore`. #542

Closed thijsnado closed 2 months ago

thijsnado commented 2 months ago

Describe the bug Unable to ignore view files with config.ignore.

To Reproduce Steps to reproduce the behavior:

  1. Add a view app/views/anything/ignore_me.html.erb
  2. Add config.ignore += ["app/views/anything/ignore_me.html.erb"]
  3. Go to /coverage/views_tracker
  4. See that view is still shown

Expected behavior I would expect the view not to be included in the view tracker.

Additional context We have several views which are needed for development but unused in production. I'd like to ignore these ones since they are never used and create noise.

danmayer commented 2 months ago

thanks @thijsnado this is fixed and should go out in the next release