• Wincent
    Open
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Omitting specs from rcov resultsEdit

Created 5/18/2007, updated 3/12/2020

Spec::Rake::SpecTask.new("spec:rcov") do |t| t.spec_files = FileList["spec/**/*_spec.rb"] t.rcov = true t.rcov_opts = ['–exclude', "spec"] # <-- this is the critical line end

Source: http://rubyforge.org/pipermail/rspec-users/2007-April/001149.html

For an explanation in context, see Behaviour-Driven Development with Rails.

  • rspec
  • rcov
  • wiki
Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell using React, Relay and GraphQL (with help from Git, Redis and Neovim).