summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2012-10-11 12:43:30 +0200
committerAzul <azul@leap.se>2012-10-11 12:43:30 +0200
commit69d92d0f4577ccacadce6e8f4b8dc80b5f696777 (patch)
tree506749242ee3195788ec6fcc12d099f56dee600e /lib
parent74fae0787ff98c16fe60f89aa9f789e4e699143f (diff)
test tasks for all engines replacing rails standard tests
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/test.rake18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/tasks/test.rake b/lib/tasks/test.rake
new file mode 100644
index 0000000..3c87b45
--- /dev/null
+++ b/lib/tasks/test.rake
@@ -0,0 +1,18 @@
+namespace :test do
+
+ Rails::SubTestTask.new(:units => "test:prepare") do |t|
+ t.libs << "test"
+ t.pattern = '*/test/unit/**/*_test.rb'
+ end
+
+ Rails::SubTestTask.new(:functionals => "test:prepare") do |t|
+ t.libs << "test"
+ t.pattern = '*/test/functional/**/*_test.rb'
+ end
+
+ Rails::SubTestTask.new(:integration => "test:prepare") do |t|
+ t.libs << "test"
+ t.pattern = '*/test/integration/**/*_test.rb'
+ end
+
+end