Project

General

Profile

Bug #18695

Missing test/functional/ directory causes rake test:functionals failure

Added by Dominic Cleal over 5 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
Tests
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

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.


Related issues

Related to Foreman - Refactor #16557: Move tests into test/models, controllers, helpers dirs.Closed2016-09-14

Associated revisions

Revision facbf0c7 (diff)
Added by Dominic Cleal over 5 years ago

fixes #18695 - create test/functional/ for test:functionals task

History

#1 Updated by Dominic Cleal over 5 years ago

  • Related to Refactor #16557: Move tests into test/models, controllers, helpers dirs. added

#2 Updated by The Foreman Bot over 5 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/4341 added

#3 Updated by Dominic Cleal over 5 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#4 Updated by Dominic Cleal over 5 years ago

  • Legacy Backlogs Release (now unused) set to 209

Also available in: Atom PDF