Actions
Bug #18695
closedMissing test/functional/ directory causes rake test:functionals failure
Description
Rails 5.0 now raises errors when calling rake tasks for test files that don't exist (https://github.com/rails/rails/commit/084a390), which causes a failure when calling rake test:functionals
as there is no test/functional/ directory.
This task is used by our jenkins:unit
task to run unit/functional tests only, skipping integration tests, so is important.
rake aborted! LoadError: cannot load such file -- /home/dcleal/code/foreman/foreman/test/functional /home/dcleal/.rvm/gems/ruby-2.3.0@foreman/gems/activesupport-5.0.2.rc1/lib/active_support/dependencies.rb:293:in `require' /home/dcleal/.rvm/gems/ruby-2.3.0@foreman/gems/activesupport-5.0.2.rc1/lib/active_support/dependencies.rb:293:in `block in require' /home/dcleal/.rvm/gems/ruby-2.3.0@foreman/gems/activesupport-5.0.2.rc1/lib/active_support/dependencies.rb:259:in `load_dependency' /home/dcleal/.rvm/gems/ruby-2.3.0@foreman/gems/activesupport-5.0.2.rc1/lib/active_support/dependencies.rb:293:in `require' /home/dcleal/.rvm/gems/ruby-2.3.0@foreman/gems/railties-5.0.2.rc1/lib/rails/test_unit/test_requirer.rb:11:in `block in require_files' /home/dcleal/.rvm/gems/ruby-2.3.0@foreman/gems/railties-5.0.2.rc1/lib/rails/test_unit/test_requirer.rb:10:in `each' /home/dcleal/.rvm/gems/ruby-2.3.0@foreman/gems/railties-5.0.2.rc1/lib/rails/test_unit/test_requirer.rb:10:in `require_files' /home/dcleal/.rvm/gems/ruby-2.3.0@foreman/gems/railties-5.0.2.rc1/lib/rails/test_unit/minitest_plugin.rb:62:in `rake_run' /home/dcleal/.rvm/gems/ruby-2.3.0@foreman/gems/railties-5.0.2.rc1/lib/rails/test_unit/testing.rake:48:in `block (2 levels) in <top (required)>' /home/dcleal/.rvm/gems/ruby-2.3.0@foreman/gems/rake-12.0.0/exe/rake:27:in `<top (required)>' /home/dcleal/.rvm/gems/ruby-2.3.0@foreman/bin/ruby_executable_hooks:15:in `eval' /home/dcleal/.rvm/gems/ruby-2.3.0@foreman/bin/ruby_executable_hooks:15:in `<main>' Tasks: TOP => test:functionals (See full trace by running task with --trace)
It was removed when I moved test files in #16557, but the empty directory should probably have been kept.
Updated by Dominic Cleal almost 8 years ago
- Related to Refactor #16557: Move tests into test/models, controllers, helpers dirs. added
Updated by The Foreman Bot almost 8 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/4341 added
Updated by Dominic Cleal almost 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset facbf0c764e36feac69a55643124caf174471feb.
Updated by Dominic Cleal almost 8 years ago
- Translation missing: en.field_release set to 209
Actions