When I run spec:rcov on my continuous integration server, the rcov report is including many other libraries in the report, including some from standard lib and gems. Has anyone else had this problem or have any ideas for how to limit it just to coverage of code in app/ and lib/? Thanks, Brandon -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part Url : http://rubyforge.org/pipermail/rspec-users/attachments/20070924/9958215a/attachment.bin
When I run spec:rcov on my continuous integration server, the rcov report is including many other libraries in the report, including some from standard lib and gems. Has anyone else had this problem or have any ideas for how to limit it just to coverage of code in app/ and lib/? Thanks, Brandon -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part Url : http://rubyforge.org/pipermail/rspec-users/attachments/20070924/ae43959f/attachment.bin
On 9/24/07, Brandon Keepers <brandon at collectiveidea.com> wrote:> When I run spec:rcov on my continuous integration server, the rcov > report is including many other libraries in the report, including > some from standard lib and gems. Has anyone else had this problem or > have any ideas for how to limit it just to coverage of code in app/ > and lib/? >Read the RCov manual and pass command line options to it via the RSpec rake task''s rcov_opts attribute. Aslak> Thanks, > Brandon > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users > >
On 9/25/07, Brandon Keepers <bkeepers at gmail.com> wrote:> When I run spec:rcov on my continuous integration server, the rcov > report is including many other libraries in the report, including > some from standard lib and gems. Has anyone else had this problem or > have any ideas for how to limit it just to coverage of code in app/ > and lib/? >Make a custom rake task in lib/tasks (or run rcov manually) with one or several --exclude statements: % rcov | grep -A 1 exclude -x, --exclude PATTERNS Don''t generate info for files matching a pattern (comma-separated regexp list) --exclude-only PATTERNS Skip info only for files matching the given patterns. Here''s an example of such a rake task from my latest project: http://pastie.caboo.se/100531 -- Cheers, Eivind Uggedal Engineer, Faculty of Social Science, MSc Computer Science, University of Oslo