You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by as...@apache.org on 2008/09/30 02:34:38 UTC

svn commit: r700316 - /incubator/buildr/trunk/rakelib/rspec.rake

Author: assaf
Date: Mon Sep 29 17:34:38 2008
New Revision: 700316

URL: http://svn.apache.org/viewvc?rev=700316&view=rev
Log:
Somehow these magical options get RCov to behave nicely, showing coverage for lib, and omitting gems and on OS X, system libraries.

Modified:
    incubator/buildr/trunk/rakelib/rspec.rake

Modified: incubator/buildr/trunk/rakelib/rspec.rake
URL: http://svn.apache.org/viewvc/incubator/buildr/trunk/rakelib/rspec.rake?rev=700316&r1=700315&r2=700316&view=diff
==============================================================================
--- incubator/buildr/trunk/rakelib/rspec.rake (original)
+++ incubator/buildr/trunk/rakelib/rspec.rake Mon Sep 29 17:34:38 2008
@@ -46,7 +46,7 @@
     task.spec_opts << '--colour' if $stdout.isatty
     task.rcov = true
     task.rcov_dir = 'reports/coverage'
-    task.rcov_opts = %W{--exclude spec,bin,#{Config::CONFIG['sitedir']},#{Gem.path.join(',')} --text-summary}
+    task.rcov_opts << '--exclude / --include-file ^lib --text-summary'
   end
   file 'reports/coverage'=>'coverage'