1

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?

Deekor
  • 9,144
  • 16
  • 69
  • 121

1 Answers1

5

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

SimpleCov.minimum_coverage 90
coreyward
  • 77,547
  • 20
  • 137
  • 166
  • Ah! I had no idea we were even using that. I inherited this project a few months ago and am still getting acquainted with everything. Thanks! – Deekor Mar 16 '16 at 20:00
  • It is strange that you are showing how to set it to 90, where the OP cannot even pass 80. Perhaps the OP wanted to set it to 70. – sawa Mar 16 '16 at 20:18