---
title: RCov
inMenu: true
---
h2. RCov
RSpec has tight integration with RCov. If you have RCov installed you can
use the rake task to generate a coverage report. See the Rake for details.
h3. Coverage threshold
You can guard your codebase's coverage from dropping by adding the
RCov::VerifyTask
task to your Rakefile. Example:
This will give you a :rcov_verify task that will fail your build if the
coverage drops below the threshold you define (the higher the better).