summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-06-05 21:56:48 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-06-05 21:56:48 +0300
commitdb779388fee09b14ee591d9cb4981bdae3d23be9 (patch)
tree3155c3c218e373bddb6fb6463d730fa43d69d5ca /lib
parent08c3c0659ca65d89c7998ce690b30a1d09b6df87 (diff)
parente84057da1bc0d96e7f24424f423a9491d99d5585 (diff)
downloadgitlab-ce-db779388fee09b14ee591d9cb4981bdae3d23be9.tar.gz
Merge pull request #7075 from jvanbaarsen/split-spinach-tests
Splitted the Spinach tests to prevent time-outs
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/spinach.rake21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/tasks/spinach.rake b/lib/tasks/spinach.rake
index dcc7d0fe01c..507b315759d 100644
--- a/lib/tasks/spinach.rake
+++ b/lib/tasks/spinach.rake
@@ -6,7 +6,28 @@ task :spinach do
%W(rake gitlab:setup),
%W(spinach),
]
+ run_commands(cmds)
+end
+
+desc "GITLAB | Run project spinach features"
+task :spinach_project do
+ cmds = [
+ %W(rake gitlab:setup),
+ %W(spinach --tags ~@admin,~@dashboard,~@profile,~@public,~@snippets),
+ ]
+ run_commands(cmds)
+end
+
+desc "GITLAB | Run other spinach features"
+task :spinach_other do
+ cmds = [
+ %W(rake gitlab:setup),
+ %W(spinach --tags @admin,@dashboard,@profile,@public,@snippets),
+ ]
+ run_commands(cmds)
+end
+def run_commands(cmds)
cmds.each do |cmd|
system({'RAILS_ENV' => 'test', 'force' => 'yes'}, *cmd) or raise("#{cmd} failed!")
end