[Rake-devel] testtasks.rb failure

Lionel Thiry lthiry at skynet.be
Mon May 2 18:07:59 EDT 2005


Lionel Thiry a écrit :
> Berger, Daniel a écrit :
> 
>> Hi all,
>>
>> I add this test to testtasks.rb for future use if you like:
>>
>> def test_directory_win32
>>    desc "WIN32 DESC"
>>    directory 'c:\testdata\a\b\c'
>>    assert_equal FileTask, Task['c:\testdata'].class
>>    assert_equal FileTask, Task['c:\testdata\a'].class
>>    assert_equal FileTask, Task['c:\testdata\a\b\c'].class
>>    assert_nil             Task['c:\testdata'].comment
>>    assert_equal "WIN32 DESC",   Task['c:\testdata\a\b\c'].comment
>>    assert_nil             Task['c:\testdata\a\b'].comment
>>    verbose(false) {
>>       Task['c:\testdata\a\b'].invoke
>>    }
>>    assert File.exist?('c:\testdata\a\b')
>>    assert ! File.exist?('c:\testdata\a\b\c')
>> end
>>
>> After applying Lionel's patch, all tests pass for testtasks.rb:
>>
>> C:\ruby\lib\ruby\gems\1.8\gems\rake-0.5.4\test>ruby testtasks.rb
>> Loaded suite testtasks
>> Started
>> ..............................
>> Finished in 3.705 seconds.
>>
>> 30 tests, 77 assertions, 0 failures, 0 errors
>>
>> Lionel, are you still seeing failures?
>>
>> Regards,
>>
>> Dan
>>
> 
> Yes, testasks alone works perfectly:
> ----8<----
> C:\usr\ruby\lib\ruby\gems\1.8\gems\rake-0.5.4>rake test TEST=test/testtasks.rb
> (in C:/usr/ruby/lib/ruby/gems/1.8/gems/rake-0.5.4)
> 
> C:\usr\ruby\lib\ruby\gems\1.8\gems\rake-0.5.4>
> ----8<----
> 

Perfectly? With no output?

testtasks.rb works, I'm sure of it, as my recent tests show it.

But is it normal that "rake test TEST=test/testtasks.rb" gives no output?

-- 
Lionel Thiry

Personal website: http://users.skynet.be/lthiry/


More information about the Rake-devel mailing list