Actions
Defect #12252
closedAll Integration API Tests fail
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Invalid
Affected version:
Description
I'm probably doing something wrong, but I followed the instructions and common sense steps to run Integration tests for the API, and got the following result:
Finished in 26.495165 seconds. 309 tests, 338 assertions, 61 failures, 11 errors, 0 pendings, 0 omissions, 0 notifications 0% passed 11.66 tests/s, 12.76 assertions/s
Many, if not all, failed with a 500 error.
I did the following to setup the database:
rake db:create RAILS_ENV=test rake db:schema:load RAILS_ENV=test ruby test/integration/api_test/issues_test.rb
Updated by Jean-Philippe Lang about 12 years ago
- Category deleted (
REST API) - Priority changed from High to Normal
All the tests run OK on the CI server: http://www.redmine.org/builds/index.html.
Maybe you could provide the stack trace of one these errors?
Updated by Gabriel Mazetto about 12 years ago
I identified that all of them was related with the "EmailWatcher" plugin, as it follows:
NameError (uninitialized constant Issue::EmailWatcher):
I don't know exactly what is the expected behavior, if it is to initialize plugins before testing, or what, but there is definitely a problem here.
Updated by Jean-Philippe Lang about 12 years ago
- Status changed from New to Closed
- Resolution set to Invalid
Plugins are loaded before running tests. I'm closing it since it's a plugin issue.
Actions