Testing rake

Hi,

I installed rake-0.7.2 as a gem, and following the suggestion of the
docs tried to run the tests.
It complained about rcov, so I installed that as well, then the same
for flexmock, and then it ran:
UNABLE TO RUN FUNCTIONAL TESTS
No Session Found
Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake/rake_test_loader
Started
..........E..................E................................................................................................................................................E......................................................................
Finished in 9.683188 seconds.

  1) Error:
test_load_rakefile_from_subdir(TestApplication):
Errno::ENOENT: No such file or directory - test/data/unittest/subdir
    ./test/test_application.rb:66:in `chdir'
    ./test/test_application.rb:66:in `test_load_rakefile_from_subdir'

  2) Error:
test_require(TestApplicationOptions):
LoadError: no such file to load -- test/reqfile3
    /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
    /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
    ./lib/rake.rb:1778:in `do_option'
    ./lib/rake.rb:1814:in `handle_options'
    /usr/lib/ruby/1.8/getoptlong.rb:460:in `each'
    /usr/lib/ruby/1.8/getoptlong.rb:457:in `each'
    ./lib/rake.rb:1814:in `handle_options'
    ./test/test_application.rb:401:in `command_line'
    ./test/test_application.rb:389:in `flags'
    ./test/capture_stdout.rb:11:in `capture_stdout'
    ./test/test_application.rb:388:in `flags'
    ./test/test_application.rb:387:in `flags'
    ./test/test_application.rb:305:in `test_require'

  3) Error:
test_can_load_rake_library(TestRequire):
LoadError: Can't find test2
    ./lib/rake.rb:1840:in `rake_require'
    ./test/test_require.rb:11:in `test_can_load_rake_library'

245 tests, 719 assertions, 0 failures, 3 errors
rake aborted!
Command failed with status (1): [/usr/bin/ruby -w -Ilib "/usr/lib/ruby/gems...]

Is there still something missing from my setup, or are these tests not
quite up to date?

Cheers,

Han Holl

Han Holl wrote:

Hi,

I installed rake-0.7.2 as a gem, and following the suggestion of the
docs tried to run the tests.
It complained about rcov, so I installed that as well,

Hmm ... rcov shouldn't be required just to run unit tests. I'll fix
that.

then the same
for flexmock, and then it ran:
UNABLE TO RUN FUNCTIONAL TESTS
No Session Found

The functional tests require the session gem to run. If you don't have
the session gem (or are on Windows where the session gem won't work),
you will automatically skip the functional tests. That has nothing to
do with the following errors.

Loaded suite
/usr/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake/rake_test_loader
Started
..........E..................E................................................................................................................................................E......................................................................
Finished in 9.683188 seconds.

It seems rake isn't providing everything you need for the tests in the
gem. I'll look into this.

Thanks for the report.

-- Jim Weirich

···

--
Posted via http://www.ruby-forum.com/\.