[Rake-devel] CVS HEAD unit tests

Jim Weirich jim at weirichhouse.org
Mon Dec 12 07:10:31 EST 2005


On Saturday 10 December 2005 08:25 am, Damphyr wrote:
> Jim, I'm trying to test a patch I made to check for 'Changing task
> dependencies from another task' using the unit tests in the Rake Rakefile.
> I get several failures, and I wanted to ask if it's stuff that hasn't
> been fixed yet or it's just that I need to set omehting for the tests to
> be succesful?

The tests all run successfully for me on my linux box:

traken$ rake ta
(in /home/jim/working/rubyforge/rake)
mkdir -p testdata
/usr/local/bin/ruby -w -Ilib 
"/usr/local/lib/ruby/gems/1.8/gems/rake-0.6.99.2/lib/rake/rake_test_loader.rb" 
"test/test_filelist.rb" "test/test_fileutils.rb" "test/test_package_task.rb" 
"test/test_ftp.rb" "test/test_clean.rb" "test/test_tasks.rb" 
"test/test_rake.rb" "test/test_makefile_loader.rb" "test/test_test_task.rb" 
"test/test_rules.rb" "test/test_file_creation_task.rb" 
"test/test_file_task.rb" "test/test_earlytime.rb" "test/test_multitask.rb" 
"test/test_definitions.rb" "test/test_task_manager.rb" 
"test/contrib/testsys.rb" "test/functional.rb" 
Loaded 
suite /usr/local/lib/ruby/gems/1.8/gems/rake-0.6.99.2/lib/rake/rake_test_loader
Started
................................................................................................................................................
Finished in 24.033096 seconds.

144 tests, 474 assertions, 0 failures, 0 errors

> Also, what's the session required for functional tests?

Session is used to drive the application from the console, capturing all input 
and output.  Unfortunately, session doesn't work in windows so the functional 
tests are usually disabled there.

I will try the tests on a windows box when I get a chance.

-- 
-- Jim Weirich    jim at weirichhouse.org     http://onestepback.org
-----------------------------------------------------------------
"Beware of bugs in the above code; I have only proved it correct, 
not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)


More information about the Rake-devel mailing list