简体   繁体   中英

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?

如果您使用的是simplecov ,则可以在规范助手中设置以下内容:

SimpleCov.minimum_coverage 90

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM