Project

General

Profile

running functional tests after installation. 1 failures, 4 errors

Added by yves dufour almost 16 years ago

I just installed from the trunk... clean environment (OS X , all libs installed for for imagemagick, .. )

$ rake test:functionals
275 tests, 1062 assertions, 1 failures, 4 errors

1) Error:
test_show(AccountControllerTest):
RuntimeError: Missing anonymous builtin role.
/Users/yves/Sites/rails/redmine/app/models/role.rb:130:in `anonymous'
/Users/yves/Sites/rails/redmine/app/models/project.rb:132:in `allowed_to_condition'
/Users/yves/Sites/rails/redmine/vendor/plugins/acts_as_activity_provider/lib/acts_as_activity_provider.rb:67:in `find_events'
2) Error:
test_destroy_version_attachment(AttachmentsControllerTest):
NoMethodError: You have a nil object when you didn't expect it!
The error occurred while evaluating nil.project
/Users/yves/Sites/rails/redmine/app/models/attachment.rb:98:in `project'
3) Error:
test_destroy_wiki_page_attachment(AttachmentsControllerTest):
NoMethodError: You have a nil object when you didn't expect it!
The error occurred while evaluating nil.project
/Users/yves/Sites/rails/redmine/app/models/attachment.rb:98:in `project'
/Users/yves/Sites/rails/redmine/app/controllers/attachments_controller.rb:60:in `find_project'
4) Error:
test_destroy_without_permission(AttachmentsControllerTest):
NoMethodError: You have a nil object when you didn't expect it!
The error occurred while evaluating nil.project
/Users/yves/Sites/rails/redmine/app/models/attachment.rb:98:in `project'
/Users/yves/Sites/rails/redmine/app/controllers/attachments_controller.rb:60:in `find_project'
5) Failure:
test_add_file(ProjectsControllerTest)
[./test/functional/projects_controller_test.rb:133:in `test_add_file'
expected to be kind_of?
<TMail::Mail> but was
<NilClass>.

Did I missed anything after installing.. ?

thanks for your lights

erwin


Replies (3)

[SOLVED]: running functional tests after installation. 1 failures, 4 errors - Added by yves dufour almost 16 years ago

some modifications should be done in the functional tests scripts to include missing fixtures :

class AccountControllerTest < Test::Unit::TestCase
fixtures :users, :roles

class AttachmentsControllerTest < Test::Unit::TestCase
fixtures :users, :projects, :roles, :members, :enabled_modules, :issues, :attachments, :versions, :wiki_pages, :wikis

RE: running functional tests after installation. 1 failures, 4 errors - Added by Attila Domokos almost 16 years ago

I just tried to run RedMine on my Linux box and got the same error:

app/models/role.rb:130:in `anonymous'
app/models/project.rb:132:in `allowed_to_condition'
app/models/news.rb:34:in `latest'
app/controllers/welcome_controller.rb:21:in `index'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:1166:in `send'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:1166:in `perform_action_without_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:579:in `call_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:572:in `perform_action_without_benchmark'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/rescue.rb:201:in `perform_action_without_caching'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/caching/sql_cache.rb:13:in `perform_action'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/query_cache.rb:8:in `cache'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/caching/sql_cache.rb:12:in `perform_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:529:in `send'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:529:in `process_without_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:568:in `process_without_session_management_support'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/session_management.rb:130:in `process'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:389:in `process'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:149:in `handle_request'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:107:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:104:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:104:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:35:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/rails-2.1.2/lib/webrick_server.rb:112:in `handle_dispatch'
/usr/lib/ruby/gems/1.8/gems/rails-2.1.2/lib/webrick_server.rb:78:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
/usr/lib/ruby/gems/1.8/gems/rails-2.1.2/lib/webrick_server.rb:62:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/rails-2.1.2/lib/commands/servers/webrick.rb:66
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:510:in `require'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:355:in `new_constants_in'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:510:in `require'
/usr/lib/ruby/gems/1.8/gems/rails-2.1.2/lib/commands/server.rb:39
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
script/server:3
-e:2:in `load'
-e:2

Any idea why I got this error?
Thanks for your help:
A.

RE: running functional tests after installation. 1 failures, 4 errors - Added by Eric Davis almost 16 years ago

All the tests are passing for me as of r2182: http://gist.github.com/40153 Try running the full suite with rake test, there some some inner test dependencies that I'm planning on cleaning up post 0.8.

Eric

    (1-3/3)