simplecov
simplecov copied to clipboard
Single file run scope.
Is there any way to run simplecov per file basis to check that every .rb
file has its own spec
file and the coverage of that file isn't less than some value?
I have the next .rb
files
file1.rb file2.rb file3.rb
And the next spec
files:
file1_spec.rb file2_spec.rb
I want to have an unsuccessful result in case of specific spec
file doesn't cover its .rb
file with 100%. For example, after running a single file check rspec file2_spec.rb
coverage is 80%, but after running rspec spec
coverage is 100% because file1.rb
triggers some code from file2.rb
.
I want to have an unsuccessful result in case of specific .rb
doesn't have its own spec
file even if code from this file is triggered from any other file.
I looked though this repo, looking exactly for this, it would be very useful. I would be the only way make use new pr's actually cover what they should :-)