1
|
require File.expand_path("../engine", File.dirname(__FILE__))
|
2
|
namespace :test do
|
3
|
namespace :docker do
|
4
|
|
5
|
desc "Run the plugin unit test suite."
|
6
|
task :test => ['db:test:prepare'] do
|
7
|
test_task = Rake::TestTask.new('docker_test_task') do |t|
|
8
|
t.libs << ["test", "#{ForemanDocker::Engine.root}/test"]
|
9
|
t.test_files = [
|
10
|
"#{ForemanDocker::Engine.root}/test/**/*_test.rb",
|
11
|
]
|
12
|
t.verbose = true
|
13
|
end
|
14
|
|
15
|
Rake::Task[test_task.name].invoke
|
16
|
end
|
17
|
end
|
18
|
end
|
19
|
|
20
|
Rake::Task[:test].enhance do
|
21
|
Rake::Task['test:docker'].invoke
|
22
|
end
|