Pavol Murin
2007-Feb-21 19:13 UTC
[Instiki] Errors when running Rake test (OS-X and Windows XP)
Hello, thank you for the interesting product, instiki looks very promising. I found I cannot run "rake" without errors being reported. This is the bottom of the output from svn version on OS-X: 1) Failure: test_import(FileControllerTest) 2) Failure: test_pic_upload_end_to_end(FileControllerTest) 3) Error: test_parse_uri_interestng_cases(RoutesTest): 4) Error: test_parse_uri_liberal_with_pagenames(RoutesTest): 5) Failure: test_authenticate(WikiControllerTest) [./test/functional/ wiki_controller_test.rb:35]: 87 tests, 284 assertions, 3 failures, 2 errors rake aborted! Test failures Results are abbreviated, I can send them upon request. I had more errors when trying "rake" on 0.11 zipped version under Windows XP. shouldn''t the rake test run without errors? Regards. muro
Johannes Vanderknyff
2007-Feb-21 20:26 UTC
[Instiki] Errors when running Rake test (OS-X and Windows XP)
Pavol, I know on my system (XP) version 0.11 runs the tests without errors. I did have issues in the past. Can you clarify what version of ruby you have? I don''t have a Mac and so can''t help you on that one. Thanks, Johannes On 2/21/07, Pavol Murin <palomurin at gmail.com> wrote:> Hello, > thank you for the interesting product, instiki looks very promising. > > I found I cannot run "rake" without errors being reported. This is > the bottom of the output from svn version on OS-X: > > 1) Failure: > test_import(FileControllerTest) > 2) Failure: > test_pic_upload_end_to_end(FileControllerTest) > 3) Error: > test_parse_uri_interestng_cases(RoutesTest): > 4) Error: > test_parse_uri_liberal_with_pagenames(RoutesTest): > 5) Failure: > test_authenticate(WikiControllerTest) [./test/functional/ > wiki_controller_test.rb:35]: > > > 87 tests, 284 assertions, 3 failures, 2 errors > rake aborted! > Test failures > > Results are abbreviated, I can send them upon request. > > > I had more errors when trying "rake" on 0.11 zipped version under > Windows XP. > > > shouldn''t the rake test run without errors? > > Regards. muro > > _______________________________________________ > Instiki-users mailing list > Instiki-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instiki-users >
Pavol Murin
2007-Feb-21 20:51 UTC
[Instiki] Errors when running Rake test (OS-X and Windows XP)
On 2/21/07, Johannes Vanderknyff <johannes.vanderknyff at gmail.com> wrote:> Pavol, > > I know on my system (XP) version 0.11 runs the tests without errors. I > did have issues in the past. Can you clarify what version of ruby you > have? > > I don''t have a Mac and so can''t help you on that one. > > Thanks, > Johannes > > > On 2/21/07, Pavol Murin <palomurin at gmail.com> wrote: > > Hello, > > thank you for the interesting product, instiki looks very promising. > > > > I found I cannot run "rake" without errors being reported. This is > > the bottom of the output from svn version on OS-X: > > > > 1) Failure: > > test_import(FileControllerTest) > > 2) Failure: > > test_pic_upload_end_to_end(FileControllerTest) > > 3) Error: > > test_parse_uri_interestng_cases(RoutesTest): > > 4) Error: > > test_parse_uri_liberal_with_pagenames(RoutesTest): > > 5) Failure: > > test_authenticate(WikiControllerTest) [./test/functional/ > > wiki_controller_test.rb:35]: > > > > > > 87 tests, 284 assertions, 3 failures, 2 errors > > rake aborted! > > Test failures > > > > Results are abbreviated, I can send them upon request. > > > > > > I had more errors when trying "rake" on 0.11 zipped version under > > Windows XP. > > > > > > shouldn''t the rake test run without errors? > > > > Regards. muro > > > > _______________________________________________ > > Instiki-users mailing list > > Instiki-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/instiki-users > > > _______________________________________________ > Instiki-users mailing list > Instiki-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instiki-users >Hello Johannes, thanks for the quick reply. ruby -v ruby 1.8.5 (2006-08-25) [i386-mswin32] what did surprise me is that I don''t have rails installed at home - but instiki runs :-). However I still get a lot of errors when running rake (without parameters). To get an idea about the errors: This is the start: Started EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE Finished in 89.219 seconds. 1) Error: test_create_system_form_displayed(AdminControllerTest): Errno::EBADF: Bad file descriptor - connect(2) D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:108:in `initialize'' D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:108:in `new'' D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:108:in `real_connect'' D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:316:in `connect'' D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:87:in `initialize'' D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:37:in `new'' D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:37:in `mysql_connection'' D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in `send'' D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in `connection_without_query_cache='' D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/query_cache.rb:54:in `connection='' D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:106:in `retrieve_connection'' D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:20:in `connection'' D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:242:in `create_fixtures'' D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:540:in `load_fixtures'' D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:496:in `setup_with_fixtures'' D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:522:in `setup'' ... and this is the end: 85) Error: test_web_list(WikiControllerTest): Errno::EBADF: Bad file descriptor - connect(2) D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:108:in `initialize'' D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:108:in `new'' D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:108:in `real_connect'' D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:316:in `connect'' D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:87:in `initialize'' D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:37:in `new'' D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:37:in `mysql_connection'' D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in `send'' D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in `connection_without_query_cache='' D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/query_cache.rb:54:in `connection='' D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:106:in `retrieve_connection'' D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:20:in `connection'' D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:242:in `create_fixtures'' D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:540:in `load_fixtures'' D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:496:in `setup_with_fixtures'' D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:522:in `setup'' 85 tests, 0 assertions, 0 failures, 85 errors rake aborted! Test failures Thanks, Pavol
Matthias Tarasiewicz
2007-Feb-21 21:18 UTC
[Instiki] Errors when running Rake test (OS-X and Windows XP)
this looks like your test.db does not exist or has connection problems. please check the config/database.yml for the entry "test" and make sure the db exists and the username/pass is correct. -m On 2/21/07, Pavol Murin <palomurin at gmail.com> wrote:> On 2/21/07, Johannes Vanderknyff <johannes.vanderknyff at gmail.com> wrote: > > Pavol, > > > > I know on my system (XP) version 0.11 runs the tests without errors. I > > did have issues in the past. Can you clarify what version of ruby you > > have? > > > > I don''t have a Mac and so can''t help you on that one. > > > > Thanks, > > Johannes > > > > > > On 2/21/07, Pavol Murin <palomurin at gmail.com> wrote: > > > Hello, > > > thank you for the interesting product, instiki looks very promising. > > > > > > I found I cannot run "rake" without errors being reported. This is > > > the bottom of the output from svn version on OS-X: > > > > > > 1) Failure: > > > test_import(FileControllerTest) > > > 2) Failure: > > > test_pic_upload_end_to_end(FileControllerTest) > > > 3) Error: > > > test_parse_uri_interestng_cases(RoutesTest): > > > 4) Error: > > > test_parse_uri_liberal_with_pagenames(RoutesTest): > > > 5) Failure: > > > test_authenticate(WikiControllerTest) [./test/functional/ > > > wiki_controller_test.rb:35]: > > > > > > > > > 87 tests, 284 assertions, 3 failures, 2 errors > > > rake aborted! > > > Test failures > > > > > > Results are abbreviated, I can send them upon request. > > > > > > > > > I had more errors when trying "rake" on 0.11 zipped version under > > > Windows XP. > > > > > > > > > shouldn''t the rake test run without errors? > > > > > > Regards. muro > > > > > > _______________________________________________ > > > Instiki-users mailing list > > > Instiki-users at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/instiki-users > > > > > _______________________________________________ > > Instiki-users mailing list > > Instiki-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/instiki-users > > > > > > Hello Johannes, > > thanks for the quick reply. > > ruby -v > ruby 1.8.5 (2006-08-25) [i386-mswin32] > > > what did surprise me is that I don''t have rails installed at home - > but instiki runs :-). However I still get a lot of errors when running > rake (without parameters). > > To get an idea about the errors: > This is the start: > > Started > EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE > Finished in 89.219 seconds. > > 1) Error: > test_create_system_form_displayed(AdminControllerTest): > Errno::EBADF: Bad file descriptor - connect(2) > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:108:in > `initialize'' > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:108:in > `new'' > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:108:in > `real_connect'' > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:316:in > `connect'' > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:87:in > `initialize'' > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:37:in > `new'' > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:37:in > `mysql_connection'' > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in > `send'' > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in > `connection_without_query_cache='' > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/query_cache.rb:54:in > `connection='' > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:106:in > `retrieve_connection'' > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:20:in > `connection'' > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:242:in > `create_fixtures'' > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:540:in > `load_fixtures'' > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:496:in > `setup_with_fixtures'' > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:522:in > `setup'' > > > > ... > > and this is the end: > > 85) Error: > test_web_list(WikiControllerTest): > Errno::EBADF: Bad file descriptor - connect(2) > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:108:in > `initialize'' > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:108:in > `new'' > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:108:in > `real_connect'' > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:316:in > `connect'' > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:87:in > `initialize'' > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:37:in > `new'' > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:37:in > `mysql_connection'' > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in > `send'' > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in > `connection_without_query_cache='' > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/query_cache.rb:54:in > `connection='' > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:106:in > `retrieve_connection'' > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:20:in > `connection'' > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:242:in > `create_fixtures'' > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:540:in > `load_fixtures'' > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:496:in > `setup_with_fixtures'' > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:522:in > `setup'' > > 85 tests, 0 assertions, 0 failures, 85 errors > rake aborted! > Test failures > > > Thanks, Pavol > _______________________________________________ > Instiki-users mailing list > Instiki-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instiki-users >
Pavol Murin
2007-Feb-22 07:52 UTC
[Instiki] Errors when running Rake test (OS-X and Windows XP)
Hello Matthias, thanks for the hint! I checked database.yml for production, but forgot about test :-(. Now these are the tests I did on Windows XP: 0.11 - changed database.yml to use only sqlite3 databases: "rake" -> 85 tests, 0 assertions, 0 failures, 85 errors trying to run "rake migrate RAILS_ENV=test" -> ** Invoke migrate (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute migrate rake aborted! unknown error c:/ruby/lib/ruby/1.8/dl/import.rb:29:in `initialize'' c:/ruby/lib/ruby/1.8/dl/import.rb:29:in `dlopen'' c:/ruby/lib/ruby/1.8/dl/import.rb:29:in `dlload'' c:/ruby/lib/ruby/1.8/dl/import.rb:27:in `each'' c:/ruby/lib/ruby/1.8/dl/import.rb:27:in `dlload'' c:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1-mswin32/lib/sqlite3/driver/dl/api.rb:63 c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' ----------------------------------------------------------------- Now I downloaded the svn version and found that it is using only sqlite3 databases: "rake" -> 174 errors I ran "rake db:migrate RAILS_ENV=test" now "rake" returns: Loaded suite c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader Started ..............................F..F.......F............................................................................ Finished in 2.563 seconds. 1) Failure: test_content_with_wikiword_in_em(PageRendererTest) ... 2) Failure: test_double_replacing(PageRendererTest) [./test/unit/page_renderer_test.rb:244]: 3) Failure: test_mixed_formatting(PageRendererTest) 118 tests, 740 assertions, 3 failures, 0 errors Warning: tests involving pdflatex are very slow, therefore they are disabled by default. Set environment variable INSTIKI_TEST_PDFLATEX or global Ruby variable $INSTIKI_TEST_PDFLATEX to enable them. Loaded suite c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader Started .......................F..F...EE.F..................................................... Finished in 10.75 seconds. 1) Failure: test_import(FileControllerTest) 2) Failure: test_pic_upload_end_to_end(FileControllerTest) 3) Error: test_parse_uri_interestng_cases(RoutesTest): 4) Error: test_parse_uri_liberal_with_pagenames(RoutesTest): 5) Failure: test_authenticate(WikiControllerTest) [./test/functional/wiki_controller_test.rb:35]: 87 tests, 284 assertions, 3 failures, 2 errors So the svn version runs better, but still not without errors. I give up on 0.11 and would like to use the svn version. What could be the reason for the last 5 errors? Thanks for your help, Pavol On 2/21/07, Matthias Tarasiewicz <parasew at gmail.com> wrote:> this looks like your test.db does not exist or has connection > problems. please check the config/database.yml for the entry "test" > and make sure the db exists and the username/pass is correct. > > -m > > On 2/21/07, Pavol Murin <palomurin at gmail.com> wrote: > > On 2/21/07, Johannes Vanderknyff <johannes.vanderknyff at gmail.com> wrote: > > > Pavol, > > > > > > I know on my system (XP) version 0.11 runs the tests without errors. I > > > did have issues in the past. Can you clarify what version of ruby you > > > have? > > > > > > I don''t have a Mac and so can''t help you on that one. > > > > > > Thanks, > > > Johannes > > > > > > > > > On 2/21/07, Pavol Murin <palomurin at gmail.com> wrote: > > > > Hello, > > > > thank you for the interesting product, instiki looks very promising. > > > > > > > > I found I cannot run "rake" without errors being reported. This is > > > > the bottom of the output from svn version on OS-X: > > > > > > > > 1) Failure: > > > > test_import(FileControllerTest) > > > > 2) Failure: > > > > test_pic_upload_end_to_end(FileControllerTest) > > > > 3) Error: > > > > test_parse_uri_interestng_cases(RoutesTest): > > > > 4) Error: > > > > test_parse_uri_liberal_with_pagenames(RoutesTest): > > > > 5) Failure: > > > > test_authenticate(WikiControllerTest) [./test/functional/ > > > > wiki_controller_test.rb:35]: > > > > > > > > > > > > 87 tests, 284 assertions, 3 failures, 2 errors > > > > rake aborted! > > > > Test failures > > > > > > > > Results are abbreviated, I can send them upon request. > > > > > > > > > > > > I had more errors when trying "rake" on 0.11 zipped version under > > > > Windows XP. > > > > > > > > > > > > shouldn''t the rake test run without errors? > > > > > > > > Regards. muro > > > > > > > > _______________________________________________ > > > > Instiki-users mailing list > > > > Instiki-users at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/instiki-users > > > > > > > _______________________________________________ > > > Instiki-users mailing list > > > Instiki-users at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/instiki-users > > > > > > > > > > > Hello Johannes, > > > > thanks for the quick reply. > > > > ruby -v > > ruby 1.8.5 (2006-08-25) [i386-mswin32] > > > > > > what did surprise me is that I don''t have rails installed at home - > > but instiki runs :-). However I still get a lot of errors when running > > rake (without parameters). > > > > To get an idea about the errors: > > This is the start: > > > > Started > > EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE > > Finished in 89.219 seconds. > > > > 1) Error: > > test_create_system_form_displayed(AdminControllerTest): > > Errno::EBADF: Bad file descriptor - connect(2) > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:108:in > > `initialize'' > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:108:in > > `new'' > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:108:in > > `real_connect'' > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:316:in > > `connect'' > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:87:in > > `initialize'' > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:37:in > > `new'' > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:37:in > > `mysql_connection'' > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in > > `send'' > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in > > `connection_without_query_cache='' > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/query_cache.rb:54:in > > `connection='' > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:106:in > > `retrieve_connection'' > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:20:in > > `connection'' > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:242:in > > `create_fixtures'' > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:540:in > > `load_fixtures'' > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:496:in > > `setup_with_fixtures'' > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:522:in > > `setup'' > > > > > > > > ... > > > > and this is the end: > > > > 85) Error: > > test_web_list(WikiControllerTest): > > Errno::EBADF: Bad file descriptor - connect(2) > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:108:in > > `initialize'' > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:108:in > > `new'' > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:108:in > > `real_connect'' > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:316:in > > `connect'' > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:87:in > > `initialize'' > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:37:in > > `new'' > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:37:in > > `mysql_connection'' > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in > > `send'' > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in > > `connection_without_query_cache='' > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/query_cache.rb:54:in > > `connection='' > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:106:in > > `retrieve_connection'' > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:20:in > > `connection'' > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:242:in > > `create_fixtures'' > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:540:in > > `load_fixtures'' > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:496:in > > `setup_with_fixtures'' > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:522:in > > `setup'' > > > > 85 tests, 0 assertions, 0 failures, 85 errors > > rake aborted! > > Test failures > > > > > > Thanks, Pavol > > _______________________________________________ > > Instiki-users mailing list > > Instiki-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/instiki-users > > > _______________________________________________ > Instiki-users mailing list > Instiki-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instiki-users >
Pavol Murin
2007-Feb-22 07:55 UTC
[Instiki] Errors when running Rake test (OS-X and Windows XP)
As I just noticed, I get the same errors in the svn version on both OS-X and on Windows XP. Do you get no failures/errors in the svn version? (see errors and failures in the previous mail) Regards, Pavol On 2/22/07, Pavol Murin <palomurin at gmail.com> wrote:> Hello Matthias, > thanks for the hint! I checked database.yml for production, but > forgot about test :-(. > > Now these are the tests I did on Windows XP: > > 0.11 - changed database.yml to use only sqlite3 databases: > "rake" -> 85 tests, 0 assertions, 0 failures, 85 errors > trying to run "rake migrate RAILS_ENV=test" -> > > ** Invoke migrate (first_time) > ** Invoke environment (first_time) > ** Execute environment > ** Execute migrate > rake aborted! > unknown error > c:/ruby/lib/ruby/1.8/dl/import.rb:29:in `initialize'' > c:/ruby/lib/ruby/1.8/dl/import.rb:29:in `dlopen'' > c:/ruby/lib/ruby/1.8/dl/import.rb:29:in `dlload'' > c:/ruby/lib/ruby/1.8/dl/import.rb:27:in `each'' > c:/ruby/lib/ruby/1.8/dl/import.rb:27:in `dlload'' > c:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1-mswin32/lib/sqlite3/driver/dl/api.rb:63 > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'' > > ----------------------------------------------------------------- > > Now I downloaded the svn version and found that it is using only > sqlite3 databases: > "rake" -> 174 errors > I ran "rake db:migrate RAILS_ENV=test" > now "rake" returns: > > Loaded suite c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader > Started > ..............................F..F.......F............................................................................ > Finished in 2.563 seconds. > > 1) Failure: > test_content_with_wikiword_in_em(PageRendererTest) > ... > 2) Failure: > test_double_replacing(PageRendererTest) [./test/unit/page_renderer_test.rb:244]: > > 3) Failure: > test_mixed_formatting(PageRendererTest) > > > 118 tests, 740 assertions, 3 failures, 0 errors > Warning: tests involving pdflatex are very slow, therefore they are > disabled by default. > Set environment variable INSTIKI_TEST_PDFLATEX or global Ruby variable > $INSTIKI_TEST_PDFLATEX to enable them. > Loaded suite c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader > Started > .......................F..F...EE.F..................................................... > Finished in 10.75 seconds. > > 1) Failure: > test_import(FileControllerTest) > > 2) Failure: > test_pic_upload_end_to_end(FileControllerTest) > > 3) Error: > test_parse_uri_interestng_cases(RoutesTest): > > 4) Error: > test_parse_uri_liberal_with_pagenames(RoutesTest): > > 5) Failure: > test_authenticate(WikiControllerTest) > [./test/functional/wiki_controller_test.rb:35]: > > 87 tests, 284 assertions, 3 failures, 2 errors > > So the svn version runs better, but still not without errors. I give > up on 0.11 and would like to use the svn version. What could be the > reason for the last 5 errors? > > Thanks for your help, Pavol > > > > > On 2/21/07, Matthias Tarasiewicz <parasew at gmail.com> wrote: > > this looks like your test.db does not exist or has connection > > problems. please check the config/database.yml for the entry "test" > > and make sure the db exists and the username/pass is correct. > > > > -m > > > > On 2/21/07, Pavol Murin <palomurin at gmail.com> wrote: > > > On 2/21/07, Johannes Vanderknyff <johannes.vanderknyff at gmail.com> wrote: > > > > Pavol, > > > > > > > > I know on my system (XP) version 0.11 runs the tests without errors. I > > > > did have issues in the past. Can you clarify what version of ruby you > > > > have? > > > > > > > > I don''t have a Mac and so can''t help you on that one. > > > > > > > > Thanks, > > > > Johannes > > > > > > > > > > > > On 2/21/07, Pavol Murin <palomurin at gmail.com> wrote: > > > > > Hello, > > > > > thank you for the interesting product, instiki looks very promising. > > > > > > > > > > I found I cannot run "rake" without errors being reported. This is > > > > > the bottom of the output from svn version on OS-X: > > > > > > > > > > 1) Failure: > > > > > test_import(FileControllerTest) > > > > > 2) Failure: > > > > > test_pic_upload_end_to_end(FileControllerTest) > > > > > 3) Error: > > > > > test_parse_uri_interestng_cases(RoutesTest): > > > > > 4) Error: > > > > > test_parse_uri_liberal_with_pagenames(RoutesTest): > > > > > 5) Failure: > > > > > test_authenticate(WikiControllerTest) [./test/functional/ > > > > > wiki_controller_test.rb:35]: > > > > > > > > > > > > > > > 87 tests, 284 assertions, 3 failures, 2 errors > > > > > rake aborted! > > > > > Test failures > > > > > > > > > > Results are abbreviated, I can send them upon request. > > > > > > > > > > > > > > > I had more errors when trying "rake" on 0.11 zipped version under > > > > > Windows XP. > > > > > > > > > > > > > > > shouldn''t the rake test run without errors? > > > > > > > > > > Regards. muro > > > > > > > > > > _______________________________________________ > > > > > Instiki-users mailing list > > > > > Instiki-users at rubyforge.org > > > > > http://rubyforge.org/mailman/listinfo/instiki-users > > > > > > > > > _______________________________________________ > > > > Instiki-users mailing list > > > > Instiki-users at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/instiki-users > > > > > > > > > > > > > > > > Hello Johannes, > > > > > > thanks for the quick reply. > > > > > > ruby -v > > > ruby 1.8.5 (2006-08-25) [i386-mswin32] > > > > > > > > > what did surprise me is that I don''t have rails installed at home - > > > but instiki runs :-). However I still get a lot of errors when running > > > rake (without parameters). > > > > > > To get an idea about the errors: > > > This is the start: > > > > > > Started > > > EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE > > > Finished in 89.219 seconds. > > > > > > 1) Error: > > > test_create_system_form_displayed(AdminControllerTest): > > > Errno::EBADF: Bad file descriptor - connect(2) > > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:108:in > > > `initialize'' > > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:108:in > > > `new'' > > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:108:in > > > `real_connect'' > > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:316:in > > > `connect'' > > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:87:in > > > `initialize'' > > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:37:in > > > `new'' > > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:37:in > > > `mysql_connection'' > > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in > > > `send'' > > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in > > > `connection_without_query_cache='' > > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/query_cache.rb:54:in > > > `connection='' > > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:106:in > > > `retrieve_connection'' > > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:20:in > > > `connection'' > > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:242:in > > > `create_fixtures'' > > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:540:in > > > `load_fixtures'' > > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:496:in > > > `setup_with_fixtures'' > > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:522:in > > > `setup'' > > > > > > > > > > > > ... > > > > > > and this is the end: > > > > > > 85) Error: > > > test_web_list(WikiControllerTest): > > > Errno::EBADF: Bad file descriptor - connect(2) > > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:108:in > > > `initialize'' > > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:108:in > > > `new'' > > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:108:in > > > `real_connect'' > > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:316:in > > > `connect'' > > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:87:in > > > `initialize'' > > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:37:in > > > `new'' > > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:37:in > > > `mysql_connection'' > > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in > > > `send'' > > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in > > > `connection_without_query_cache='' > > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/query_cache.rb:54:in > > > `connection='' > > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:106:in > > > `retrieve_connection'' > > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:20:in > > > `connection'' > > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:242:in > > > `create_fixtures'' > > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:540:in > > > `load_fixtures'' > > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:496:in > > > `setup_with_fixtures'' > > > D:/instiki-0.11.0/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:522:in > > > `setup'' > > > > > > 85 tests, 0 assertions, 0 failures, 85 errors > > > rake aborted! > > > Test failures > > > > > > > > > Thanks, Pavol > > > _______________________________________________ > > > Instiki-users mailing list > > > Instiki-users at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/instiki-users > > > > > _______________________________________________ > > Instiki-users mailing list > > Instiki-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/instiki-users > > >