# Problem with rakefile

**URL:** <https://www.ruby-forum.com/t/problem-with-rakefile/74069>\
**Category:** Rails\
**Created:** [February 27, 2006, 11:04am UTC](https://www.ruby-forum.com/t/problem-with-rakefile/74069 "2006-02-27T11:04:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shiko](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e47774/32.png) [@shiko](https://www.ruby-forum.com/u/shiko)\
**Post date:** [February 27, 2006, 11:04am UTC](https://www.ruby-forum.com/t/problem-with-rakefile/74069/1 "2006-02-27T11:04:48Z")

</div>

hi,

I am having a problem with the rake test\_units in my RoR application.  
when i’m running it it tries to run all the files that end in \*.rb (i  
think) under the /unit folder in the project and it’s subfolders.

The problem is that my source control system (bitkeeper) saves an  
subfolder named SCCS under each of the project folders, and in it, for  
eack .rb file another file called something like s.orig\_file\_name.rb.  
this fails the rake task since these s.xxx.rb files are not valid ruby  
unit test files…

How can i configure the rake to ignore all the files in the SCCS  
directories ?  
Is there any global variable i can edit ?

Thanks in Advance,  
Amir.

---

<div class="post-metadata">

**Author:** ![shiko](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e47774/32.png) [@shiko](https://www.ruby-forum.com/u/shiko)\
**Post date:** [February 27, 2006, 1:03pm UTC](https://www.ruby-forum.com/t/problem-with-rakefile/74069/2 "2006-02-27T13:03:03Z")

</div>

amir lidor wrote:

> hi,
> 
> I am having a problem with the rake test\_units in my RoR application.  
> when i’m running it it tries to run all the files that end in \*.rb (i  
> think) under the /unit folder in the project and it’s subfolders.
> 
> The problem is that my source control system (bitkeeper) saves an  
> subfolder named SCCS under each of the project folders, and in it, for  
> eack .rb file another file called something like s.orig\_file\_name.rb.  
> this fails the rake task since these s.xxx.rb files are not valid ruby  
> unit test files…
> 
> How can i configure the rake to ignore all the files in the SCCS  
> directories ?  
> Is there any global variable i can edit ?
> 
> Thanks in Advance,  
> Amir.

well,  
I found some kind of solution, although I’m quiet sure there is a better  
way of doing it.  
what i did was to add another .rake file for my app in the  
/usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/tasks directory in  
which i added a task of my own:  
desc “MY TEST Run the unit tests in test/unit”  
Rake::TestTask.new(:my\_test\_units =\> [:prepare\_test\_database]) do |t|  
t.libs \<\< “test”  
t.pattern = ‘test/unit/\*\_test.rb’  
t.verbose = true  
end

I don’t really like this patch since i’d like my new .rake file to be  
also under my source control system… also it’ just a copy-paste of  
the  
testing.rake relevant section…  
I imagine there is a cleaner way of just overriding the tasks somewhere  
in the project…
