Forum: Ruby Rcov Task

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Koustubh J. (Guest)
on 2007-05-22 10:52

Am trying to run my ruby files in rcov task,

here is the code, am using,

  require 'rcov/rcovtask' do |t|

    t.test_files = FileList["/**/TestCase/*.rb"]
    t.verbose = true
rescue LoadError
  puts 'Rcov is not available.'

There are many .rb files in that TestCase folder but it is showing the
coverage of only one file...

Will you plz help me, how i can get covrage of all .rb files.
Jano S. (Guest)
on 2007-05-22 11:22
(Received via mailing list)
On 5/22/07, Koustubh J. <removed_email_address@domain.invalid> wrote:
> Will you plz help me, how i can get covrage of all .rb files.
rcov normally excludes test files from coverage. to see what that
means, try --help or have a look at the sources. what I remember is
that tc_* are excluded, and maybe test_* and (this will interest you)
maybe test* directories. There's a command line option to include them
in the coverage, so there should an option to the task too.

This topic is locked and can not be replied to.