Codeclimate test coverage: dinged for config/initializers/rack_profiler.rb

11 views
Skip to first unread message

Jason Hsu, Ruby on High Speed Rails

unread,
Mar 27, 2016, 12:11:05 AM3/27/16
to Ruby on Rails: Talk
My project at https://github.com/jhsu802701/losemoneyfast is rated at 98.7% test coverage.  I'm getting dinged for config/initializers/rack_profiler.rb .

Is there something I can do to fix this or to get the CodeClimate engine to skip this file in its test coverage analysis?

tamouse pontiki

unread,
Mar 27, 2016, 1:46:51 AM3/27/16
to rubyonra...@googlegroups.com
On Sat, Mar 26, 2016 at 11:11 PM, Jason Hsu, Ruby on High Speed Rails <jhsu8...@gmail.com> wrote:
My project at https://github.com/jhsu802701/losemoneyfast is rated at 98.7% test coverage.  I'm getting dinged for config/initializers/rack_profiler.rb .

Is there something I can do to fix this or to get the CodeClimate engine to skip this file in its test coverage analysis?

You've just slipped off the edge of using metrics to meaningfully improve your testing to gaming the metric collection to meaninglessly improve a metric.



Jason Hsu, Ruby on High Speed Rails

unread,
Mar 29, 2016, 1:27:33 AM3/29/16
to Ruby on Rails: Talk
It's easier to see changes when I'm at 100%.  What I'm trying to do is analogous to configuring Rubocop and Rails Best Practices to ignore certain violations.  (Given how nitpicky these tools can be, some violations may not be worth correcting.)
Reply all
Reply to author
Forward
0 new messages