simplecov
simplecov copied to clipboard
SimpleCov.minimum_coverage_by_file: support specifying file path
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'
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.
Hi there,
thanks for the input :)
To be realistic, I doubt we'll get to it any time soon but PRs welcome :)
+1 for specific files