Search code examples
ruby-on-railsrubyruby-on-rails-4rspeccodeship

rspec ignore code coverage percentage?


After I run rspec in my Rails 4 project all the tests pass but I get:

Coverage (79.17%) is below the expected minimum coverage (80.00%).

as the last line. This is causing Codeship to mark the build as failed and email me.

Is there anyway to disable this coverage test or change the minimum coverage percentage?


Solution

  • If you're using simplecov you can set the following in your spec helper:

    SimpleCov.minimum_coverage 90