Sha256: cc1b6cf2329e0aa2ee671314e3bb10836f9d8f967621d0a5fbd1f7e660f43ac4
Contents?: true
Size: 885 Bytes
Versions: 7
Compression:
Stored size: 885 Bytes
Contents
--- title: RCov inMenu: true --- h2. RCov RSpec has tight integration with "RCov":http://eigenclass.org/hiki.rb?rcov=. h3. Run specs with RCov <ruby file="../test/tasks/examples_with_rcov.rake"/> By adding rcov=true to the rake task, specs will be run with rcov instead of ruby, and a coverage report like "this":../coverage/index.html will be generated. See "Spec::Rake::SpecTask":../rdoc/classes/Spec/Rake/SpecTask.html for details. h3. Coverage threshold You can guard your codebase's coverage from dropping below a certain threshold by using RSpec's built-in task for verification of the total RCov coverage. <ruby file="../test/tasks/rcov_verify.rake"/> 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). See "RCov::VerifyTask":../rdoc/classes/RCov/VerifyTask.html for details.
Version data entries
7 entries across 7 versions & 1 rubygems