OSDN Git Service
(root)
/
sharp4k
/
CUTEn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b9e0e0
)
Add convenient tasks to run tests on spork server
author
eagletmt
<eagletmt@gmail.com>
Fri, 27 Jul 2012 17:50:37 +0000
(
02:50
+0900)
committer
eagletmt
<eagletmt@gmail.com>
Fri, 27 Jul 2012 17:50:37 +0000
(
02:50
+0900)
CutenServer/lib/tasks/spork.rake
[new file with mode: 0644]
patch
|
blob
diff --git a/CutenServer/lib/tasks/spork.rake
b/CutenServer/lib/tasks/spork.rake
new file mode 100644
(file)
index 0000000..
a231695
--- /dev/null
+++ b/
CutenServer/lib/tasks/spork.rake
@@ -0,0
+1,17
@@
+namespace :spork do
+ task :test => 'spork:test:run'
+
+ namespace :test do
+ default_tests = [:unit, :functional, :integration]
+
+ desc "Run tests with testdrb"
+ task :run => default_tests
+
+ default_tests.each do |t|
+ desc "Run #{t} tests with testdrb"
+ task t do
+ sh "testdrb -Itest test/#{t}/*_test.rb"
+ end
+ end
+ end
+end