Skip to content

Commit 1eef8dd

Browse files
author
ckruse
committed
run plugin tests with rake test:plugins and rake test
1 parent 123d033 commit 1eef8dd

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Rakefile

+13
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
require File.expand_path('../config/application', __FILE__)
66
require 'rake'
77

8+
require 'rake/testtask'
9+
810
class Rake::Task
911
def overwrite(&block)
1012
@full_comment = nil
@@ -55,4 +57,15 @@ Rake::Task['db:create'].enhance do
5557
#Rake::Task['db:after_create'].invoke
5658
end
5759

60+
namespace :test do
61+
Rake::TestTask.new :plugins do |t|
62+
t.libs << 'test'
63+
t.pattern = 'test/plugins/**/*_test.rb'
64+
end
65+
end
66+
67+
Rake::Task['test:run'].enhance do
68+
Rake::Task['test:plugins'].invoke
69+
end
70+
5871
# eof

0 commit comments

Comments
 (0)