[Rake-devel] testtasks.rb failure
Lionel Thiry
lthiry at skynet.be
Mon May 2 18:04:21 EDT 2005
We can see in the beginning of the output
----8<----
c:\usr\ruby\lib\ruby\gems\1.8\gems\rake-0.5.4> rake
(in c:/usr/ruby/lib/ruby/gems/1.8/gems/rake-0.5.4)
UNABLE TO RUN FUNCTIONAL TESTS
No Session Found
Loaded suite c:/usr/ruby/lib/ruby/gems/1.8/gems/rake-0.5.4/lib/rake/rake_test_loader
Started
...
----8<----
But those functional tests *are* run. And fails, as the files they need aren't
written yet.
I've modfied test/functional.rb so that
----8<----
begin
require 'rubygems'
require_gem 'session'
rescue LoadError
puts "UNABLE TO RUN FUNCTIONAL TESTS"
puts "No Session Found"
end
----8<----
is split into two parts, with
----8<----
begin
require 'rubygems'
require_gem 'session'
----8<----
in the beginning of test/functionnal.rb, and
----8<----
rescue LoadError
puts "UNABLE TO RUN FUNCTIONAL TESTS"
puts "No Session Found"
end
----8<----
at the end. So the tests are truly skipped on a LoadError.
(sorry, I could not find a better way, I'm a newbie after all: only one year and
half of ruby use. I'm also sorry I don't know how to easily use diff on windows
to provide patches)
I've put the new output as attachment.
The error about the missing test/data/sample.mf is right: I have no such file.
Is it normal?
--
Lionel Thiry
Personal website: http://users.skynet.be/lthiry/
-------------- next part --------------
c:\usr\ruby\lib\ruby\gems\1.8\gems\rake-0.5.4> rake
(in c:/usr/ruby/lib/ruby/gems/1.8/gems/rake-0.5.4)
UNABLE TO RUN FUNCTIONAL TESTS
No Session Found
Loaded suite c:/usr/ruby/lib/ruby/gems/1.8/gems/rake-0.5.4/lib/rake/rake_test_loader
Started
.......................................................-e:1:in `exit': no implicit conversion from nil to integer (TypeError)
from -e:1
FE.EF.......E...............................
Finished in 3.734 seconds.
1) Failure:
test_ruby(TestFileUtils)
[./test/testfileutils.rb:101:in `test_ruby'
./test/testfileutils.rb:99:in `call'
./lib/rake.rb:492:in `sh'
./lib/rake.rb:563:in `sh'
./lib/rake.rb:558:in `sh'
./lib/rake.rb:510:in `ruby'
./lib/rake.rb:563:in `ruby'
./lib/rake.rb:558:in `ruby'
./test/testfileutils.rb:99:in `test_ruby'
./test/testfileutils.rb:95:in `verbose'
./test/testfileutils.rb:95:in `test_ruby']:
<123> expected but was
<1>.
2) Error:
test_sh(TestFileUtils):
RuntimeError: Command failed with status (1): [test/shellcommand.rb]
./lib/rake.rb:485:in `sh'
./lib/rake.rb:484:in `call'
./lib/rake.rb:492:in `sh'
./lib/rake.rb:563:in `sh'
./lib/rake.rb:558:in `sh'
./test/testfileutils.rb:56:in `test_sh'
./test/testfileutils.rb:56:in `verbose'
./test/testfileutils.rb:56:in `test_sh'
3) Error:
test_sh_multiple_arguments(TestFileUtils):
RuntimeError: Command failed with status (1): [test $RAKE_TEST_SH = someval]
./lib/rake.rb:485:in `sh'
./lib/rake.rb:484:in `call'
./lib/rake.rb:492:in `sh'
./lib/rake.rb:563:in `sh'
./lib/rake.rb:558:in `sh'
./test/testfileutils.rb:63:in `test_sh_multiple_arguments'
./test/testfileutils.rb:63:in `verbose'
./test/testfileutils.rb:63:in `test_sh_multiple_arguments'
4) Failure:
test_sh_special_handling(TestFileUtils)
[./test/testfileutils.rb:81:in `test_sh_special_handling'
./test/testfileutils.rb:80:in `call'
./lib/rake.rb:492:in `sh'
./lib/rake.rb:563:in `sh'
./lib/rake.rb:558:in `sh'
./test/testfileutils.rb:80:in `test_sh_special_handling'
./test/testfileutils.rb:79:in `verbose'
./test/testfileutils.rb:79:in `test_sh_special_handling']:
<false> is not true.
5) Error:
test_create(TestMakefileLoader):
Errno::ENOENT: No such file or directory - test/data/sample.mf
./lib/rake/loaders/makefile.rb:11:in `initialize'
./lib/rake/loaders/makefile.rb:11:in `open'
./lib/rake/loaders/makefile.rb:11:in `load'
./test/test_makefile_loader.rb:11:in `test_create'
99 tests, 315 assertions, 2 failures, 3 errors
rake aborted!
Command failed with status (1): [ruby -Ilib -w "c:/usr/ruby/lib/ruby/gems/1...]
Process rake exited with code 1
c:\usr\ruby\lib\ruby\gems\1.8\gems\rake-0.5.4>
More information about the Rake-devel
mailing list