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

noreply at rubyforge.org noreply at rubyforge.org
Thu Nov 15 07:35:18 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: Closed
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'.


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

>Comment By: Nathan Sutton (fowlduck)
Date: 2007-11-15 06:35

Message:
Woo! Thank Aslak!

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

Comment By: Aslak Hellesøy (aslak_hellesoy)
Date: 2007-11-15 03:44

Message:
Its' your lucky day - I'd usually ask you to submit a patch.

As of r2890 you have spec/rcov.opts. You must re-install and re-bootstrap the rspec_on_rails plugin to get it.


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

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