Good tip on adding groups to Coverage report. Also, I didn't know about to filter not used files, as channels stuff.
But I wanted to remove Channels, Jobs and Libraries tabs from report.
I found this way looking at [Coverage source](https://github.com/colszowka/simplecov/blob/master/lib/simplecov.rb)
```
SimpleCov.start 'rails' do
# add filter removes files from coverage, but not tabs in report
add_filter 'app/channels/'
add_filter 'vendor/'
add_filter 'app/jobs/'
# remove tabs in report
groups.each do |group|
groups.delete(group.first) if %w(Channels Jobs Libraries).include? group.first
end
# add my onw tabs in report
add_group 'Datatables', 'app/datatables'
add_group 'Policies', 'app/policies'
add_group 'Presenters', 'app/presenters'
end
```
Thanks for this episode. I applied to one of my projects in minutes and now it's in production. My question is how to disable Sentry while I'm developing my app, you know, when environment is not production. Thanks.
Ok, that was my first insight. I wonder if Rails has already an environment var provided by rails/ujs. Something such window.railsEnvironent(). If not, is easy to set it on the main layout.
As you mention bin/webpack-dev-server, a great enhancement for my rails 6 development I did is using foreman. Put a file called Procfile.dev in your app's home directory: