My coverage report is not at 100% because I have a couple of #inspect methods in my classes which I use for debugging purposes. Is there a way to configure SimpleCov to ignore all the inspect methods?
I know I'm late to this, but I had to do the same thing and discovered the solution.
Wrap your code with # :nocov:
comments like so:
# :nocov:
def my_debug_method
do_something
end
# :nocov:
Documentation here: http://rubydoc.info/gems/simplecov/SimpleCov/Configuration#nocov_token-instance_method
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With