Running the tests


#1

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