violet_rails
violet_rails copied to clipboard
enforce minimum code coverage requirement before merging to master
calculate current test coverage after we fix: https://github.com/restarone/violet_rails/issues/245
and then add a rule that prevents merging to master if the change lowers coverage
to see test coverage report please run:
./clean_run_tests.sh
and then you will see
open coverage/index.html
CI example: https://github.com/restarone/violet_rails/blob/master/.github/workflows/ruby.yml
if test coverage is lower with the change applied, we should fail