Commit e84057da authored by Jeroen van Baarsen's avatar Jeroen van Baarsen

Splitted the Spinach tests to prevent time-outs

Signed-off-by: default avatarJeroen van Baarsen <jeroenvanbaarsen@gmail.com>
parent a76bf07a
......@@ -3,12 +3,14 @@ env:
global:
- TRAVIS=true
matrix:
- TASK=spinach DB=mysql
- TASK=spinach_project DB=mysql
- TASK=spinach_other DB=mysql
- TASK=spec:api DB=mysql
- TASK=spec:feature DB=mysql
- TASK=spec:other DB=mysql
- TASK=jasmine:ci DB=mysql
- TASK=spinach DB=postgresql
- TASK=spinach_project DB=postgresql
- TASK=spinach_other DB=postgresql
- TASK=spec:api DB=postgresql
- TASK=spec:feature DB=postgresql
- TASK=spec:other DB=postgresql
......
@admin
Feature: Admin active tab
Background:
Given I sign in as an admin
......
@admin
Feature: Admin Broadcast Messages
Background:
Given I sign in as an admin
......
@admin
Feature: Admin Groups
Background:
Given I sign in as an admin
......
@admin
Feature: Admin Logs
Background:
Given I sign in as an admin
......
@admin
Feature: Admin Projects
Background:
Given I sign in as an admin
......
@admin
Feature: Admin Users
Background:
Given I sign in as an admin
......
@dashboard
Feature: Dashboard active tab
Background:
Given I sign in as a user
......
@dashboard
Feature: Dashboard with archived projects
Background:
Given I sign in as a user
......
@dashboard
Feature: Dashboard
Background:
Given I sign in as a user
......
@dashboard
Feature: Event filters
Background:
Given I sign in as a user
......
@dashboard
Feature: Help
Background:
Given I sign in as a user
......
@dashboard
Feature: Dashboard Issues
Background:
Given I sign in as a user
......
@dashboard
Feature: Dashboard Merge Requests
Background:
Given I sign in as a user
......
@dashboard
Feature: Dashboard projects
Background:
Given I sign in as a user
......
@dashboard
Feature: Dashboard Search
Background:
Given I sign in as a user
......
@profile
Feature: Profile active tab
Background:
Given I sign in as a user
......
@profile
Feature: Profile Emails
Background:
Given I sign in as a user
......
@profile
Feature: Profile Group
Background:
Given I sign in as "John Doe"
......
@profile
Feature: Profile Notifications
Background:
Given I sign in as a user
......
@profile
Feature: Profile
Background:
Given I sign in as a user
......
@profile
Feature: Profile SSH Keys
Background:
Given I sign in as a user
......
@public
Feature: Public Projects Feature
Background:
Given public project "Community"
......
@public
Feature: Public Projects Feature
Background:
Given group "TestGroup" has private project "Enterprise"
......
@snippets
Feature: Discover Snippets
Background:
Given I sign in as a user
......
@snippets
Feature: Snippets Feature
Background:
Given I sign in as a user
......
@snippets
Feature: User Snippets
Background:
Given I sign in as a user
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment