simplecov-ruby / simplecov

Code coverage for Ruby with a powerful configuration library and automatic merging of coverage across test suites

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature Request: Explicit nocov begin and end tags

marknuzz opened this issue · comments

It's too difficult to know whether # :nocov: signals the beginning or end of a no-coverage section. It would be great if we could explicitly declare this. We had coverage detection accidentally disabled for a critical piece of code for several weeks before going noticed, because a nocov comment was mismatched after some refactoring.

Rubocop's comment preprocessor does a great job of being clear about these things and I wonder if we could have something similar for simplecov.