simplecov icon indicating copy to clipboard operation
simplecov copied to clipboard

SimpleCov.minimum_coverage_by_file: support specifying file path

Open artemv opened this issue 8 years ago • 3 comments

I'd like to have ability to set specific coverage requirement for a given path, e.g. to require total coverage 70% but for particular file 100%:

SimpleCov.minimum_coverage 70
SimpleCov.minimum_coverage_by_file 100, 'app/mailers/request_mailer.rb'

artemv avatar Apr 24 '17 14:04 artemv

Btw there's a quite easy solution for now using https://github.com/vicentllongo/simplecov-json - we can check the json for specific files coverage using e.g. rake task.

artemv avatar Apr 24 '17 15:04 artemv

Hi there,

thanks for the input :)

To be realistic, I doubt we'll get to it any time soon but PRs welcome :)

PragTob avatar Apr 24 '17 17:04 PragTob

+1 for specific files

sfandrew avatar Nov 11 '17 08:11 sfandrew