Forum: Rails Engines Running the tests

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
9c0eebc506c56c64dc616cdf123fa671?d=identicon&s=25 Chris Chris (aboulafia)
on 2006-03-26 09:07
Hello, I can't make rake run the tests inside the engine directory
instead of the app.

my Rakefile is
require(File.join(File.dirname(__FILE__), 'config', 'boot'))

require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'tasks/rails'
require 'fileutils'

desc "Default Task"
task :default => [ :test ]

Rake::TestTask.new do |t|
  t.libs << "test"
  t.test_files =
FileList['vendor/plugins/publish_engine/test/*_test.rb']
  t.verbose = true
end

rake ignore the FileList and run the tests located inside the app/test
directory.
rake is executed from app root directory.

Have a good sunday
This topic is locked and can not be replied to.