From e84057da1bc0d96e7f24424f423a9491d99d5585 Mon Sep 17 00:00:00 2001 From: Jeroen van Baarsen Date: Wed, 4 Jun 2014 22:55:27 +0200 Subject: Splitted the Spinach tests to prevent time-outs Signed-off-by: Jeroen van Baarsen --- lib/tasks/spinach.rake | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'lib/tasks/spinach.rake') 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 -- cgit v1.2.1