Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > test errors on rake project (gem)

Reply
Thread Tools

test errors on rake project (gem)

 
 
thebox
Guest
Posts: n/a
 
      02-09-2007
I'm not sure this is meaningful or if it makes any sense, but just for
curiosity I tried to execute rake tests against the rake gem itself
and I got a few errors (to be precise 3 failures and 5 errors in
total).

First of all, my ruby version:

C:\ruby\lib\ruby\gems\1.8\gems\rake-0.7.1>ruby -v
ruby 1.8.4 (2005-12-24) [i386-mswin32]

And this is the result of executing the tests:

C:\ruby\lib\ruby\gems\1.8\gems\rake-0.7.1>rake --trace
(in C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1)
** Invoke default (first_time)
** Invoke test_all (first_time)
** Invoke testdata (first_time)
** Execute testdata
mkdir -p testdata
** Execute test_all
C:/ruby/bin/ruby -w -Ilib "C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/
lib/rake/rake_test_loader.rb" "test/test_clean.rb"
"test/test_definitions.rb" "test/test_earlytime.rb" "test/
test_filelist.rb" "test/test_fileutils.rb" "test/test_file_cre
ation_task.rb" "test/test_file_task.rb" "test/test_ftp.rb" "test/
test_makefile_loader.rb" "test/test_multitask.rb" "test
/test_namespace.rb" "test/test_package_task.rb" "test/test_pathmap.rb"
"test/test_rake.rb" "test/test_require.rb" "test/
test_rules.rb" "test/test_tasks.rb" "test/test_task_manager.rb" "test/
test_test_task.rb" "test/contrib/testsys.rb" "test
/functional.rb"
UNABLE TO RUN FUNCTIONAL TESTS
No Session Found
Loaded suite C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/
rake_test_loader
Started
.........E.E...................................... ..................-e:
1:in `exit': no implicit conversion from nil to in
teger (TypeError)
from -e:1
FE.EF.........................................FE.. .................................................
Finished in 11.265 seconds.

1) Error:
test_create(TestEarlyTime):
ArgumentError: argument out of range
./test/test_earlytime.rb:9:in `mktime'
./test/test_earlytime.rb:9:in `test_create'

2) Error:
test_original_time_compare_is_not_messed_up(TestEa rlyTime):
ArgumentError: argument out of range
./test/test_earlytime.rb:24:in `mktime'
./test/test_earlytime.rb:24:in
`test_original_time_compare_is_not_messed_up'

3) Failure:
test_ruby(TestFileUtils)
[./test/test_fileutils.rb:116:in `test_ruby'
./lib/rake.rb:729:in `sh'
./lib/rake.rb:812:in `sh'
./lib/rake.rb:807:in `sh'
./lib/rake.rb:747:in `ruby'
./lib/rake.rb:812:in `ruby'
./lib/rake.rb:807:in `ruby'
./test/test_fileutils.rb:114:in `test_ruby'
./lib/rake.rb:831:in `verbose'
./test/test_fileutils.rb:110:in `test_ruby']:
<123> expected but was
<1>.

4) Error:
test_sh(TestFileUtils):
RuntimeError: Command failed with status (1): [test/shellcommand.rb]
./lib/rake.rb:722:in `sh'
./lib/rake.rb:729:in `sh'
./lib/rake.rb:812:in `sh'
./lib/rake.rb:807:in `sh'
./test/test_fileutils.rb:71:in `test_sh'
./lib/rake.rb:831:in `verbose'
./test/test_fileutils.rb:71:in `test_sh'

5) Error:
test_sh_multiple_arguments(TestFileUtils):
RuntimeError: Command failed with status (1): [test $RAKE_TEST_SH =
someval]
./lib/rake.rb:722:in `sh'
./lib/rake.rb:729:in `sh'
./lib/rake.rb:812:in `sh'
./lib/rake.rb:807:in `sh'
./test/test_fileutils.rb:78:in `test_sh_multiple_arguments'
./lib/rake.rb:831:in `verbose'
./test/test_fileutils.rb:78:in `test_sh_multiple_arguments'

6) Failure:
test_sh_special_handling(TestFileUtils)
[./test/test_fileutils.rb:96:in `test_sh_special_handling'
./lib/rake.rb:729:in `sh'
./lib/rake.rb:812:in `sh'
./lib/rake.rb:807:in `sh'
./test/test_fileutils.rb:95:in `test_sh_special_handling'
./lib/rake.rb:831:in `verbose'
./test/test_fileutils.rb:94:in `test_sh_special_handling']:
<false> is not true.

7) Failure:
test_each_dir_parent(TestRake) [./test/test_rake.rb:11]:
<["c:/a/b", "c:/a", "c:"]> expected but was
<["c:/a/b", "c:/a", "c:/"]>.

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

166 tests, 515 assertions, 3 failures, 5 errors
rake aborted!
Command failed with status (1): [C:/ruby/bin/ruby -w -Ilib "C:/ruby/
lib/rub...]
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:722:in `sh'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:729:in `sh'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:812:in `sh'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:807:in `sh'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:747:in `ruby'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:812:in `ruby'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:807:in `ruby'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/testtask.rb:117:in
`define'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:831:in `verbose'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/testtask.rb:102:in
`define'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `execute'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `execute'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:357:in `invoke'
C:/ruby/lib/ruby/1.8/thread.rb:135:in `synchronize'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `invoke'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:364:in
`invoke_prerequisites'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in `each'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:363:in
`invoke_prerequisites'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:356:in `invoke'
C:/ruby/lib/ruby/1.8/thread.rb:135:in `synchronize'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `invoke'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/bin/rake:7
C:/ruby/bin/rake.bat:25

Ciao
Giuliano

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
rake published rdoc version and arity of Rake::Task#execute - wrongnumber of arguments (0 for 1) James Mead Ruby 0 01-15-2008 05:42 PM
Rake TestTask running its block anytime rake is invoked Adam Anderson Ruby 1 09-19-2007 08:40 AM
Rake and rake aborted! Rake aborted! undefined method `gem' for main:Object peppermonkey Ruby 1 02-10-2007 04:43 AM
Rake 0.7.0 breaks "rake engine_migrate"? Joe Van Dyk Ruby 2 01-31-2006 12:11 AM
test test test test test test test Computer Support 2 07-02-2003 06:02 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57