# Rcov Task

**URL:** <https://www.ruby-forum.com/t/rcov-task/104761>\
**Category:** Ruby\
**Created:** [May 22, 2007, 8:52am UTC](https://www.ruby-forum.com/t/rcov-task/104761 "2007-05-22T08:52:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![koustubh\_joshi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/3ab097/32.png) [@koustubh\_joshi](https://www.ruby-forum.com/u/koustubh_joshi)\
**Post date:** [May 22, 2007, 8:52am UTC](https://www.ruby-forum.com/t/rcov-task/104761/1 "2007-05-22T08:52:46Z")

</div>

Hi,

Am trying to run my ruby files in rcov task,

here is the code, am using,

begin  
require ‘rcov/rcovtask’

Rcov::RcovTask.new do |t|

```
t.test_files = FileList["/**/TestCase/*.rb"]
t.verbose = true

```

end  
rescue LoadError  
puts ‘Rcov is not available.’  
end

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.

---

<div class="post-metadata">

**Author:** ![koustubh\_joshi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/3ab097/32.png) [@koustubh\_joshi](https://www.ruby-forum.com/u/koustubh_joshi)\
**Post date:** [May 22, 2007, 9:22am UTC](https://www.ruby-forum.com/t/rcov-task/104761/2 "2007-05-22T09:22:12Z")

</div>

On 5/22/07, Koustubh J. [removed\_email\_address@domain.invalid](mailto: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.

J.
