Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/tasks
diff options
context:
space:
mode:
authorJeroen van Baarsen <jeroenvanbaarsen@gmail.com>2014-06-05 00:55:27 +0400
committerJeroen van Baarsen <jeroenvanbaarsen@gmail.com>2014-06-05 00:55:27 +0400
commite84057da1bc0d96e7f24424f423a9491d99d5585 (patch)
treed1144e98db8ea03860621f72777e4eed1516bf3a /lib/tasks
parenta76bf07ae2ecaf47dab58cbeac37cb82ae8d3ad8 (diff)
Splitted the Spinach tests to prevent time-outs
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
Diffstat (limited to 'lib/tasks')
-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