Actions
Defect #4153
closedBroken unit tests
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-11-02
Due date:
% Done:
100%
Estimated time:
Resolution:
Invalid
Affected version:
Description
Recently unit tests was broken. :( Output for r2993 from git mirror:
$ git checkout master $ git reset hard $ git clean -xdf (edit database.yml to leave only test environment) $ rake db:drop:all db:create:all $ rake db:migrate RAILS_ENV=test $ rake /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/functional/users_controller_test.rb" "test/functional/wikis_controller_test.rb" ... "test/functional/account_controller_test.rb" ... Finished in 141.734743 seconds. 482 tests, 1734 assertions, 0 failures, 0 errors /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/integration/account_test.rb" "test/integration/lib/redmine/menu_manager_test.rb" "test/integration/application_test.rb" "test/integration/admin_test.rb" "test/integration/issues_test.rb" "test/integration/projects_test.rb" Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader Started ..................... Finished in 23.011064 seconds. 21 tests, 142 assertions, 0 failures, 0 errors Errors running test:units!
As you can see, unit tests wasn't been run at all.
Updated by Jean-Philippe Lang about 15 years ago
- Status changed from New to Closed
- Resolution set to Invalid
Tests run fine with r2993. Please read doc/RUNNING_TESTS
.
Updated by Alexey Palazhchenko about 15 years ago
- Status changed from Closed to Reopened
The problem was in this line: "(edit database.yml to leave only test environment)". For some reason unit tests in Rails requires development environment in config.
Jean-Philippe, may you please update RUNNING_TESTS to make life easier for other deployers?
Updated by Jean-Philippe Lang about 15 years ago
The problem was in this line: "Recently unit tests was broken."
I assumed that you used to pass the tests.
Updated by Jean-Philippe Lang about 15 years ago
- Status changed from Reopened to Closed
- % Done changed from 0 to 100
Applied in changeset r3021.
Actions