[rspec-devel] [ rspec-Feature Requests-15639 ] rcov exclusion configuration

noreply at rubyforge.org noreply at rubyforge.org
Thu Nov 15 03:00:44 EST 2007


Feature Requests item #15639, was opened at 2007-11-15 02:00
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3152&aid=15639&group_id=797

Category: Rake
Group: Next Release (example)
Status: Open
Priority: 3
Submitted By: Nathan Sutton (fowlduck)
Assigned to: Aslak Hellesøy (aslak_hellesoy)
Summary: rcov exclusion configuration

Initial Comment:
edge rails revision: 8146
edge rspec revision: 2889
edge rspec_on_rails revision: 2889

In the rspec_on_rails rake task in vendor/plugins/rspec_on_rails/tasks/rspec.rake on lines 25-28 you can configure custom spec options (in the spec.opts file), but not add rcov options.  The rcov feature requests I've seen on here may be able to be solved, or at least partially solved, with this feature.

  Spec::Rake::SpecTask.new(:rcov) do |t|
    t.spec_opts = ['--options', "\#{RAILS_ROOT}/spec/spec.opts\"]
    t.spec_files = FileList['spec/**/*_spec.rb']
    t.rcov = true
    t.rcov_opts = ['--exclude', '"spec/*,gems/*,lib/smtp_tls.rb"', '--rails']
  end

If you look, I've added a file to be excluded 'lib/smtp_tls.rb'.


----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3152&aid=15639&group_id=797


More information about the rspec-devel mailing list