In Rails 4.x, you could add extra test paths to rake test
by overriding the Rake
task like so:
Rake::Task['test:run'].clear
namespace :test do
Rails::TestTask.new(:run) do |t|
paths = ['test/**/*_test.rb']
paths << 'engines/foo_engine/test/**/*_test.rb'