Skip to content

Instantly share code, notes, and snippets.

@korny
Created October 29, 2011 10:25
Show Gist options
  • Save korny/1324313 to your computer and use it in GitHub Desktop.
Save korny/1324313 to your computer and use it in GitHub Desktop.
Chiliproject Test Suite
rake
/Users/murphy/.rvm/rubies/ruby-1.8.7-p352/bin/ruby -I"lib:test" -I"/Users/murphy/.rvm/gems/ruby-1.8.7-p352@chiliproject/gems/rake-0.9.2.2/lib" "/Users/murphy/.rvm/gems/ruby-1.8.7-p352@chiliproject/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb" "test/unit/**/*_test.rb"
(Test LDAP server not configured)
* DEFERRED: #link_to_if_authorized authorized user should be tested.
* DEFERRED: #link_to_if_authorized unauthorized user should be tested.
* DEFERRED: IssuesHelper#show_detail with a estimated hours attribute should format the time into two decimal places.
* DEFERRED: IssuesHelper#show_detail with a estimated hours attribute should format the old time into two decimal places.
* DEFERRED: IssuesHelper#show_detail should test custom fields.
* DEFERRED: IssuesHelper#show_detail should test attachments.
* DEFERRED: #number_of_rows with one project should return the number of rows just for that project.
* DEFERRED: #number_of_rows with no project should return the total number of rows for all the projects, resursively.
* DEFERRED: #render_project should be tested.
* DEFERRED: #render_issues should be tested.
* DEFERRED: #render_version should be tested.
* DEFERRED: #subject_for_project should test the PNG format.
* DEFERRED: #subject_for_project should test the PDF format.
* DEFERRED: #line_for_project :html format late line should start from the starting point on the left.
* DEFERRED: #line_for_project :html format late line should be the total delayed width of the project.
* DEFERRED: #line_for_project :html format done line should start from the starting point on the left.
* DEFERRED: #line_for_project :html format done line should Be the total done width of the project.
* DEFERRED: #line_for_project :html format status content should show the percent complete.
* DEFERRED: #line_for_project should test the PNG format.
* DEFERRED: #line_for_project should test the PDF format.
* DEFERRED: #subject_for_version should test the PNG format.
* DEFERRED: #subject_for_version should test the PDF format.
* DEFERRED: #line_for_version should test the PNG format.
* DEFERRED: #line_for_version should test the PDF format.
* DEFERRED: #subject_for_issue should test the PNG format.
* DEFERRED: #subject_for_issue should test the PDF format.
* DEFERRED: #line_for_issue should test the PNG format.
* DEFERRED: #line_for_issue should test the PDF format.
* DEFERRED: #to_image should be tested.
* DEFERRED: #to_pdf should be tested.
* DEFERRED: Mapper#initialize should be tested.
* DEFERRED: MenuManager#current_menu_item should be tested.
* DEFERRED: MenuManager#render_main_menu should be tested.
* DEFERRED: MenuManager#render_menu should be tested.
* DEFERRED: MenuManager#menu_item_and_children should be tested.
* DEFERRED: MenuManager#extract_node_details should be tested.
* DEFERRED: MenuItem#caption should be tested.
* DEFERRED: MenuItem#html_options should be tested.
* DEFERRED: MenuManager#map should be tested.
* DEFERRED: MenuManager#items should be tested.
Bazaar test repository NOT FOUND. Skipping unit tests !!!
Cvs test repository NOT FOUND. Skipping unit tests !!!
Darcs test repository NOT FOUND. Skipping unit tests !!!
Filesystem test repository NOT FOUND. Skipping unit tests !!! See doc/RUNNING_TESTS.
* DEFERRED: GitAdapter should test_latin_1_path.
Mercurial test repository NOT FOUND. Skipping unit tests !!!
* DEFERRED: #start_date should be tested when issues have no start date.
* DEFERRED: #due_date should be tested when issues have no due date.
Bazaar test repository NOT FOUND. Skipping unit tests !!!
CVS test repository NOT FOUND. Skipping unit tests !!!
Darcs test repository NOT FOUND. Skipping unit tests !!!
Filesystem test repository NOT FOUND. Skipping unit tests !!! See doc/RUNNING_TESTS.
Mercurial test repository NOT FOUND. Skipping unit tests !!!
Skipping LDAP tests.
* DEFERRED: User#notify_about? other events should be added and tested.
Loaded suite /Users/murphy/.rvm/gems/ruby-1.8.7-p352@chiliproject/gems/rake-0.9.2.2/lib/rake/rake_test_loader
Started
................................F..............................................................................................................F.fatal: Not a valid object name 1ca7f5ed:latin-1-dir/test-?-subdir
Ffatal: Not a valid object name 64f1f3e8:latin-1-dir
Ffatal: Not a valid object name tag01.annotated:
FF......F.F...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................FF....fatal: bad revision 'tag01.annotated'
Ffatal: bad revision '1ca7f5ed'
F.EEE....................................................................................................................................................................................................................................
Finished in 288.455431 seconds.
1) Failure:
test_syntax_highlight(ApplicationHelperTest) [test/unit/helpers/application_helper_test.rb:481]:
<"<pre><code class=\"ruby syntaxhl\"><span class=\"CodeRay\"><span class=\"line-numbers\">1</span> <span class=\"c\"># Some ruby code here</span></span></code></pre>"> expected but was
<"<pre><code class=\"ruby syntaxhl\"><span class=\"CodeRay\"><span class=\"line-numbers\">1</span><span class=\"comment\"># Some ruby code here</span></span></code></pre>">.
2) Failure:
test_branches(GitAdapterTest) [test/unit/lib/redmine/scm/adapters/git_adapter_test.rb:66]:
<["latin-1-path-encoding", "master", "test-latin-1", "test_branch"]> expected but was
<["master", "test_branch"]>.
3) Failure:
test_entries_latin_1_dir(GitAdapterTest) [test/unit/lib/redmine/scm/adapters/git_adapter_test.rb:225]:
<nil> is not true.
4) Failure:
test_entries_latin_1_files(GitAdapterTest) [test/unit/lib/redmine/scm/adapters/git_adapter_test.rb:211]:
<nil> is not true.
5) Failure:
test_entries_tag(GitAdapterTest) [test/unit/lib/redmine/scm/adapters/git_adapter_test.rb:179]:
<nil> is not true.
6) Failure:
test_getting_all_revisions(GitAdapterTest) [test/unit/lib/redmine/scm/adapters/git_adapter_test.rb:77]:
<21> expected but was
<15>.
7) Failure:
test_revisions_reverse(GitAdapterTest) [test/unit/lib/redmine/scm/adapters/git_adapter_test.rb:86]:
<21> expected but was
<15>.
8) Failure:
test_tags(GitAdapterTest) [test/unit/lib/redmine/scm/adapters/git_adapter_test.rb:73]:
<["tag00.lightweight", "tag01.annotated"]> expected but was
<[]>.
9) Failure:
test_fetch_changesets_from_scratch(RepositoryGitTest) [test/unit/repository_git_test.rb:50]:
<21> expected but was
<15>.
10) Failure:
test_fetch_changesets_incremental(RepositoryGitTest) [test/unit/repository_git_test.rb:74]:
<13> expected but was
<7>.
11) Failure:
test_latest_changesets(RepositoryGitTest) [test/unit/repository_git_test.rb:142]:
<["899a15dba03a3b350b89c3f537e4bbe02a03cdc9",
"7234cb2750b63f47bff735edc50a1c0a433c2518"]> expected but was
<[]>.
12) Failure:
test_latest_changesets_latin_1_dir(RepositoryGitTest) [test/unit/repository_git_test.rb:211]:
<["1ca7f5ed374f3cb31a93ae5215c2e25cc6ec5127"]> expected but was
<[]>.
13) Error:
test_next(RepositoryGitTest):
NoMethodError: undefined method `next' for nil:NilClass
test/unit/repository_git_test.rb:293:in `test_next'
test/unit/repository_git_test.rb:292:in `each'
test/unit/repository_git_test.rb:292:in `test_next'
test/unit/repository_git_test.rb:290:in `each'
test/unit/repository_git_test.rb:290:in `test_next'
14) Error:
test_next_nil(RepositoryGitTest):
NoMethodError: undefined method `next' for nil:NilClass
test/unit/repository_git_test.rb:303:in `test_next_nil'
test/unit/repository_git_test.rb:301:in `each'
test/unit/repository_git_test.rb:301:in `test_next_nil'
15) Error:
test_previous(RepositoryGitTest):
NoMethodError: undefined method `previous' for nil:NilClass
test/unit/repository_git_test.rb:273:in `test_previous'
test/unit/repository_git_test.rb:272:in `each'
test/unit/repository_git_test.rb:272:in `test_previous'
test/unit/repository_git_test.rb:270:in `each'
test/unit/repository_git_test.rb:270:in `test_previous'
1057 tests, 4180 assertions, 12 failures, 3 errors
/Users/murphy/.rvm/rubies/ruby-1.8.7-p352/bin/ruby -I"lib:test" -I"/Users/murphy/.rvm/gems/ruby-1.8.7-p352@chiliproject/gems/rake-0.9.2.2/lib" "/Users/murphy/.rvm/gems/ruby-1.8.7-p352@chiliproject/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb" "test/functional/**/*_test.rb"
/Users/murphy/ruby/chiliproject/app/controllers/my_controller.rb:25: warning: already initialized constant BLOCKS
/Users/murphy/ruby/chiliproject/app/controllers/my_controller.rb:29: warning: already initialized constant DEFAULT_LAYOUT
* DEFERRED: POST :copy should TODO: test the rest of the method.
/Users/murphy/ruby/chiliproject/app/controllers/repositories_controller.rb:230: warning: already initialized constant REV_PARAM_RE
Bazaar test repository NOT FOUND. Skipping functional tests !!!
CVS test repository NOT FOUND. Skipping functional tests !!!
Darcs test repository NOT FOUND. Skipping functional tests !!!
Filesystem test repository NOT FOUND. Skipping functional tests !!!
Mercurial test repository NOT FOUND. Skipping functional tests !!!
Loaded suite /Users/murphy/.rvm/gems/ruby-1.8.7-p352@chiliproject/gems/rake-0.9.2.2/lib/rake/rake_test_loader
Started
.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................fatal: Not a valid object name tag00.lightweight:
F....................................................................................................................................................................................................................................
Finished in 146.614117 seconds.
1) Failure:
test_browse_tag(RepositoriesGitControllerTest)
[test/functional/repositories_git_controller_test.rb:85:in `test_browse_tag'
test/functional/repositories_git_controller_test.rb:81:in `each'
test/functional/repositories_git_controller_test.rb:81:in `test_browse_tag']:
Expected response to be a <:success>, but was <404>
714 tests, 2275 assertions, 1 failures, 0 errors
/Users/murphy/.rvm/rubies/ruby-1.8.7-p352/bin/ruby -I"lib:test" -I"/Users/murphy/.rvm/gems/ruby-1.8.7-p352@chiliproject/gems/rake-0.9.2.2/lib" "/Users/murphy/.rvm/gems/ruby-1.8.7-p352@chiliproject/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb" "test/integration/**/*_test.rb"
* DEFERRED: Account should login after losing password should redirect back to home.
Loaded suite /Users/murphy/.rvm/gems/ruby-1.8.7-p352@chiliproject/gems/rake-0.9.2.2/lib/rake/rake_test_loader
Started
.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Finished in 142.023583 seconds.
1173 tests, 2117 assertions, 0 failures, 0 errors
Errors running test:units and test:functionals!
@korny
Copy link
Author

korny commented Oct 29, 2011

Solved by "rm-rf tmp/test/git_repository && rake test:scm:setup:git".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment