Em 09-05-2011 21:09, Rodrigo Rosenfeld Rosas escreveu:
Ok, just got many of the failures fixed after fixing config/broker.yml to include the other environments too.

It seems that I should use "adapter: test" instead of stomp :) Keep trying make all tests green :)

Now, there is only 9 failures in test:units:

Keep trying... :)

---

rake test:units
(in /var/www/gitorious)
/usr/bin/ruby1.8 -I"lib:test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/unit/committership_test.rb" "test/unit/group_test.rb" "test/unit/lib/ssh_client_test.rb" "test/unit/lib/breadcrumb_test.rb" "test/unit/lib/web_hook_generator_test.rb" "test/unit/lib/ssh_strainer_test.rb" "test/unit/lib/push_event_logger_test.rb" "test/unit/lib/comment_callback_test.rb" "test/unit/lib/push_spec_parser_test.rb" "test/unit/lib/pre_receive_guard_test.rb" "test/unit/lib/subdomain_validation_test.rb" "test/unit/lib/wiki_update_event_logger_test.rb" "test/unit/lib/wiki_commit_log_parser_test.rb" "test/unit/lib/event_rendering/text_test.rb" "test/unit/lib/markup_renderer_test.rb" "test/unit/lib/gitorious/standalone_resolver_test.rb" "test/unit/lib/commit_test.rb" "test/unit/mailer_test.rb" "test/unit/hook_test.rb" "test/unit/cloner_test.rb" "test/unit/feed_item_test.rb" "test/unit/ssh_key_file_test.rb" "test/unit/event_test.rb" "test/unit/message_test.rb" "test/unit/comment_test.rb" "test/unit/project_test.rb" "test/unit/repository_test.rb" "test/unit/page_test.rb" "test/unit/favorite_test.rb" "test/unit/membership_test.rb" "test/unit/status_tag_test.rb" "test/unit/merge_request_status_test.rb" "test/unit/site_test.rb" "test/unit/helpers/merge_requests_helper_test.rb" "test/unit/helpers/groups_helper_test.rb" "test/unit/helpers/licenses_helper_test.rb" "test/unit/helpers/comments_helper_test.rb" "test/unit/helpers/events_helper_test.rb" "test/unit/helpers/blobs_helper_test.rb" "test/unit/helpers/projects_helper_test.rb" "test/unit/helpers/keys_helper_test.rb" "test/unit/helpers/memberships_helper_test.rb" "test/unit/helpers/admin/users_helper_test.rb" "test/unit/helpers/pages_helper_test.rb" "test/unit/helpers/committerships_helper_test.rb" "test/unit/helpers/sessions_helper_test.rb" "test/unit/helpers/aliases_helper_test.rb" "test/unit/helpers/merge_request_versions_helper_test.rb" "test/unit/helpers/application_helper_test.rb" "test/unit/helpers/accounts_helper_test.rb" "test/unit/helpers/commits_helper_test.rb" "test/unit/helpers/messages_helper_test.rb" "test/unit/helpers/users_helper_test.rb" "test/unit/helpers/site_helper_test.rb" "test/unit/helpers/trees_helper_test.rb" "test/unit/helpers/favorites_helper_test.rb" "test/unit/helpers/repositories_helper_test.rb" "test/unit/helpers/searches_helper_test.rb" "test/unit/helpers/event_rendering_helper_test.rb" "test/unit/user_test.rb" "test/unit/archived_event_test.rb" "test/unit/processors/message_forwarding_processor_test.rb" "test/unit/processors/repository_creation_processor_test.rb" "test/unit/processors/merge_request_git_backend_processor_test.rb" "test/unit/processors/repository_archiving_processor_test.rb" "test/unit/processors/merge_request_version_processor_test.rb" "test/unit/processors/web_hook_processor_test.rb" "test/unit/processors/merge_request_processor_test.rb" "test/unit/processors/push_processor_test.rb" "test/unit/processors/ssh_key_processor_test.rb" "test/unit/email_test.rb" "test/unit/git_backend_test.rb" "test/unit/ssh_key_test.rb" "test/unit/merge_request_test.rb" "test/unit/role_test.rb" "test/unit/message_thread_test.rb" "test/unit/merge_request_version_test.rb" /var/www/gitorious/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement [DEPRECATION] should_require_attributes is deprecated. Use should_validate_presence_of instead. * DEFERRED: Mass email delivery should create n messages when supplying several recipients. * DEFERRED: find_by_path should finds a repository by its path, regardless of repository kind. [DEPRECATION] should_require_attributes is deprecated. Use should_validate_presence_of instead. * DEFERRED: Merge request update should locate the correct merge request. * DEFERRED: The state machine should provide a hash of labels and values for possible next states.
  * DEFERRED: The state machine should have a pseudo-open status.
Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader
Started
.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F.........................................................................................F..F........FF.F...........F......F..F......................................................................................................................
Finished in 40.413045 seconds.

  1) Failure:
test: SSHClient should return the correct authentication URL. (SSHClientTest)
    [/test/unit/lib/ssh_client_test.rb:89:in `__bind_1304986322_555253'
     shoulda (2.9.2) lib/shoulda/context.rb:253:in `call'
shoulda (2.9.2) lib/shoulda/context.rb:253:in `test: SSHClient should return the correct authentication URL. ' vendor/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:62:in `__send__' vendor/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:62:in `run']: <"http://gitorious.local:/foo/bar/writable_by?username=johan";> expected but was
<"http://gitorious.local/foo/bar/writable_by?username=johan";>.

  2) Failure:
test: Adding a project repo should include a link to the repo. (TextEventRenderingTest) [/test/unit/lib/event_rendering/text_test.rb:343:in `__bind_1304986323_483756'
     shoulda (2.9.2) lib/shoulda/context.rb:253:in `call'
shoulda (2.9.2) lib/shoulda/context.rb:253:in `test: Adding a project repo should include a link to the repo. ' vendor/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:62:in `__send__' vendor/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:62:in `run']:
repo url not in: johan added a repository to johans project
http://gitorious.local/johans-project/johansprojectrepos

http://gitorious.local/johans-project.
<false> is not true.

  3) Failure:
test: Adding and removing collaborators should include the repo url. (TextEventRenderingTest) [/test/unit/lib/event_rendering/text_test.rb:204:in `__bind_1304986323_505975'
     shoulda (2.9.2) lib/shoulda/context.rb:253:in `call'
shoulda (2.9.2) lib/shoulda/context.rb:253:in `test: Adding and removing collaborators should include the repo url. ' vendor/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:62:in `__send__' vendor/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:62:in `run']: url not in: johan added bob-the-user as collaborator to http://gitorious.local/johans-project/johansprojectrepos

http://gitorious.local/johans-project.
<false> is not true.

  4) Failure:
test: a comment should include a link back to the commit. (TextEventRenderingTest) [/test/unit/lib/event_rendering/text_test.rb:237:in `__bind_1304986323_561128'
     shoulda (2.9.2) lib/shoulda/context.rb:253:in `call'
shoulda (2.9.2) lib/shoulda/context.rb:253:in `test: a comment should include a link back to the commit. ' vendor/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:62:in `__send__' vendor/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:62:in `run']: /johans-project/johansprojectrepos/commit/abc123 not in: johan commented on http://gitorious.local/johans-project/johansprojectrepos/commit/abc123:
Needs less of everything

http://gitorious.local/johans-project.
<false> is not true.

  5) Failure:
test: a comment should include a link back to the merge request. (TextEventRenderingTest) [/test/unit/lib/event_rendering/text_test.rb:229:in `__bind_1304986323_584536'
     shoulda (2.9.2) lib/shoulda/context.rb:253:in `call'
shoulda (2.9.2) lib/shoulda/context.rb:253:in `test: a comment should include a link back to the merge request. ' vendor/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:62:in `__send__' vendor/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:62:in `run']: /johans-project/johansprojectrepos/merge_requests/13 not in: johan commented on http://gitorious.local/johans-project/johansprojectrepos/merge_requests/13:
Needs less of everything

http://gitorious.local/johans-project.
<false> is not true.

  6) Failure:
test: a push should include a list of the commits messages along with an url for each. (TextEventRenderingTest) [/test/unit/lib/event_rendering/text_test.rb:276:in `__bind_1304986323_608153'
     shoulda (2.9.2) lib/shoulda/context.rb:253:in `call'
shoulda (2.9.2) lib/shoulda/context.rb:253:in `test: a push should include a list of the commits messages along with an url for each. ' vendor/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:62:in `__send__' vendor/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:62:in `run']:
<false> is not true.

  7) Failure:
test: favoriting should include a link to the watchable. (TextEventRenderingTest) [/test/unit/lib/event_rendering/text_test.rb:383:in `__bind_1304986323_972713'
     shoulda (2.9.2) lib/shoulda/context.rb:253:in `call'
shoulda (2.9.2) lib/shoulda/context.rb:253:in `test: favoriting should include a link to the watchable. ' vendor/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:62:in `__send__' vendor/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:62:in `run']:
link not in: johan favorited johans-project/johansprojectrepos
http://gitorious.local/johans-project/johansprojectrepos

http://gitorious.local/johans-project.
<false> is not true.

  8) Failure:
test: in general should always include a project link. (TextEventRenderingTest) [/test/unit/lib/event_rendering/text_test.rb:46:in `__bind_1304986324_13427'
     shoulda (2.9.2) lib/shoulda/context.rb:253:in `call'
shoulda (2.9.2) lib/shoulda/context.rb:253:in `test: in general should always include a project link. ' vendor/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:62:in `__send__' vendor/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:62:in `run']: <"johan pushed 0 commits to \nblabla\n\n\n\nhttp://gitorious.local/johans-project";> expected to be =~
</\nhttp:\/\/gitorious\.test\/johans-project$/>.

  9) Failure:
test: wiki page should include a link to the wiki page. (TextEventRenderingTest) [/test/unit/lib/event_rendering/text_test.rb:325:in `__bind_1304986324_32628'
     shoulda (2.9.2) lib/shoulda/context.rb:253:in `call'
shoulda (2.9.2) lib/shoulda/context.rb:253:in `test: wiki page should include a link to the wiki page. ' vendor/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:62:in `__send__' vendor/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:62:in `run']:
no link in: johan updated wiki page AWikiPage
http://gitorious.local/johans-project/pages/AWikiPage

http://gitorious.local/johans-project.
<false> is not true.

943 tests, 1948 assertions, 9 failures, 0 errors



Now it seems I'm not the only one with unit tests failing:

http://groups.google.com/group/gitorious/browse_thread/thread/0c0d8ffe59bc8737

I have the same issue but unfortunately the message didn't get any reply as far as I understand.

Now I'll try to attack the problem with the undefined method clear_messages.

I'll keep posting here as I advance...

Rodrigo.

Em 09-05-2011 10:07, Benjamin Podszun escreveu:
Hi.

Not that I can help you here, but let me suggest two things:

- Append the log here, so that anyone that _can_ help you can check
out the logs before hitting you via IM
- If you offer being available via IM, state your timezone. Otherwise
'tonight' is not qualified at all

Regards,
Ben

On Mon, May 9, 2011 at 2:57 PM, Rodrigo Rosenfeld Rosas
<[email protected]>  wrote:
Hi, I intend to begin upgrading Gitorious to 3.1 tonight. But I need all
tests passing before I start.

I tried to run the tests using RubyGems 1.4.2 but got lots of errors and
failures. I just copied the same configurations of prodution in
config/databases.yml (changing the database of course) and
config/gitorious.yml into test and development environments.

What else should I set up for my testing environment?

I'm available on Gtalk (rr.rosas at gmail.com) and Skype (rr.rosas).

Thanks in advance,

Rodrigo.



--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]

Reply via email to