the gem called ‘simple_cov’ made this possible. To find the test coverage locally.
update the gemfile
add gem ‘simplecov’ to the group test in gemfile.
update the spec_helper or rails_helper
add below line to the top of the helper file
also update the below following:
add_group ‘Controllers’, ‘app/controllers’
add_group ‘Models’, ‘app/models’
group is simply show us how to group the controllers to a different path.
done all set
to show the output ; need to run the rspec .
the result is in index.html under the coverage folder in rails_root path.