MayamaTakeshi / redmine_rt

Redmine plugin for Real-Time notification of events
GNU General Public License v3.0
24 stars 4 forks source link

Redmine with redmine_rt plugin installed doesn't pass 'rake test' #19

Closed MayamaTakeshi closed 1 year ago

MayamaTakeshi commented 1 year ago
$ time rake test                                                        
Bazaar test repository NOT FOUND. Skipping functional tests !!!
CVS test repository NOT FOUND. Skipping functional tests !!! 
Filesystem test repository NOT FOUND. Skipping functional tests !!!
Git test repository NOT FOUND. Skipping functional tests !!!
Mercurial test repository NOT FOUND. Skipping functional tests !!!
Subversion test repository NOT FOUND. Skipping functional tests !!!
Git test repository NOT FOUND. Skipping integration tests !!!
(Test LDAP server not configured)
Bazaar test repository NOT FOUND. Skipping unit tests !!!
Cvs test repository NOT FOUND. Skipping unit tests !!!                                                                                                                                                     
Filesystem test repository NOT FOUND. Skipping unit tests !!! See doc/RUNNING_TESTS.
Git test repository NOT FOUND. Skipping unit tests !!!
Mercurial test repository NOT FOUND. Skipping unit tests !!!
Subversion test repository NOT FOUND. Skipping unit tests !!!
Bazaar test repository NOT FOUND. Skipping unit tests !!!
CVS test repository NOT FOUND. Skipping unit tests !!!
Filesystem test repository NOT FOUND. Skipping unit tests !!! See doc/RUNNING_TESTS.
Git test repository NOT FOUND. Skipping unit tests !!!
Git UTF-8 test repository NOT FOUND. Skipping unit tests !!!
Mercurial test repository NOT FOUND. Skipping unit tests !!!
Subversion test repository NOT FOUND. Skipping unit tests !!!
Skipping LDAP tests.
Run options: --seed 33626

...........................................................................................................................................................................................................
...........................................................................................................................................................................................................
...........................................................................................................................................................................................................
...........................................................................................................................................................................................................
...........................................................................................................................................................................................................
...........................................................................................................................................................................................................
..................................................................................................................................F

Failure:
IssuesControllerTest#test_show_display_only_all_and_history_tabs_for_issue_with_history_changes_only [/usr/local/src/git/redmine/test/functional/issues_controller_test.rb:3129]:
Expected exactly 2 elements matching "div.tabs ul a", found 3..
Expected: 2
  Actual: 3

rails test test/functional/issues_controller_test.rb:3116

..................................................F

Failure:
IssuesControllerTest#test_show_should_display_spent_time_tab_for_issue_with_time_entries [/usr/local/src/git/redmine/test/functional/issues_controller_test.rb:3170]:
Expected exactly 1 element matching "div.tabs ul a", found 4..
Expected: 1
  Actual: 4

rails test test/functional/issues_controller_test.rb:3165

...F

Failure:
IssuesControllerTest#test_show_should_not_display_history_tabs_for_issue_without_journals [/usr/local/src/git/redmine/test/functional/issues_controller_test.rb:3100]:
Expected exactly 0 elements matching "#history div.tabs", found 1..
Expected: 0
  Actual: 1

rails test test/functional/issues_controller_test.rb:3095

.......................................F

Failure:
IssuesControllerTest#test_show_should_display_visible_changesets_from_other_projects [/usr/local/src/git/redmine/test/functional/issues_controller_test.rb:2691]:
Expected at least 1 element matching "a[href="/projects/ecookbook/repository/10/revisions/3"]", found 0..
Expected 0 to be >= 1.

rails test test/functional/issues_controller_test.rb:2674

..............................................................................................................................................F

Failure:
IssuesControllerTest#test_show_display_changesets_tab_for_issue_with_changesets [/usr/local/src/git/redmine/test/functional/issues_controller_test.rb:3159]:
Expected exactly 1 element matching "div.tabs ul a", found 4..
Expected: 1
  Actual: 4

rails test test/functional/issues_controller_test.rb:3150

.....................................................................F

Failure:
IssuesControllerTest#test_show_display_only_all_and_notes_tabs_for_issue_with_notes_only [/usr/local/src/git/redmine/test/functional/issues_controller_test.rb:3109]:
Expected exactly 2 elements matching "div.tabs ul a", found 3..
Expected: 2
  Actual: 3

rails test test/functional/issues_controller_test.rb:3104

....................................................................................S......................................................................................................................
...........................................................................................................................................................................................................
...........................................................................................................................................................................................................
...........................................................................................................................................................................................................
...........................................................................................................................................................................................................
...........................................................................................................................................................................................................
.......................................................................................................................................................................F

Failure:
Redmine::ApiTest::JournalTest#test_PUT_/journals/:id.json_with_valid_parameters_should_update_the_journal_notes [/usr/local/src/git/redmine/test/integration/api_test/journals_test.rb:55]:
Expected response to be a <204: no_content>, but was a <403: Forbidden>
Response body: .
Expected: 204
  Actual: 403

rails test test/integration/api_test/journals_test.rb:46

F

Failure:
Redmine::ApiTest::JournalTest#test_PUT_/journals/:id.xml_without_journal_details_should_destroy_journal [/usr/local/src/git/redmine/test/integration/api_test/journals_test.rb:65]:
"Journal.count" didn't change by -1.
Expected: 4
  Actual: 5

rails test test/integration/api_test/journals_test.rb:62

F

Failure:
Redmine::ApiTest::JournalTest#test_PUT_/journals/:id.json_without_journal_details_should_destroy_journal [/usr/local/src/git/redmine/test/integration/api_test/journals_test.rb:82]:
"Journal.count" didn't change by -1.
Expected: 4
  Actual: 5

rails test test/integration/api_test/journals_test.rb:79

F

Failure:
Redmine::ApiTest::JournalTest#test_PUT_/journals/:id.xml_with_valid_parameters_should_update_the_journal_notes [/usr/local/src/git/redmine/test/integration/api_test/journals_test.rb:39]:
Expected response to be a <204: no_content>, but was a <403: Forbidden>
Response body: .
Expected: 204
  Actual: 403

rails test test/integration/api_test/journals_test.rb:30

rails test test/integration/api_test/journals_test.rb:30

................................................................S..........................................................................................................................................
.............................SS............................................................................................................................................................................
...........................................................................................................................................................................................................
...........................................................................................................................................................................................................
..............................................................................................
...........................................................................................................................................................................................................
...........................................................................................................................................................................................................
...........................................................................................................................................................................................................
...........................................S..................S....S.......................................................................................................................................
...........................................................................................................................................................................................................
..............................................................................................................................................................................................

Finished in 520.590420s, 9.9310 runs/s, 42.2539 assertions/s.
5170 runs, 21997 assertions, 10 failures, 0 errors, 7 skips

You have skipped tests. Run with --verbose for details.

real    8m46.014s
user    7m4.125s
sys     0m22.362s
MayamaTakeshi commented 1 year ago

I believe we should not expect tests to succeed when plugins are installed: I installed some extra plugins:

$ ls plugins/
additionals  additional_tags  README  redmine_checklists  redmine_rt

and this caused even more tests to fail.