RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Getting accurate code coverage metrics from SimpleCov in a Rails project

We use SimpleCov to track code coverage of our tests in Rails projects. For coverage to be in any way useful as a metric it needs to be accurate. We noticed that files for which we had no tests were not being tracked and not included in the coverage.

https://www.stormconsultancy.co.uk/blog/development/ruby-on-rails/getting-accurate-code-coverage-metrics-from-simplecov-rails-project/

Comments

Great tip! Thanks.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in