Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
e84057da
Commit
e84057da
authored
Jun 04, 2014
by
Jeroen van Baarsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Splitted the Spinach tests to prevent time-outs
Signed-off-by:
Jeroen van Baarsen
<
jeroenvanbaarsen@gmail.com
>
parent
a76bf07a
Changes
28
Hide whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
51 additions
and
2 deletions
+51
-2
.travis.yml
.travis.yml
+4
-2
features/admin/active_tab.feature
features/admin/active_tab.feature
+1
-0
features/admin/broadcast_messages.feature
features/admin/broadcast_messages.feature
+1
-0
features/admin/groups.feature
features/admin/groups.feature
+1
-0
features/admin/logs.feature
features/admin/logs.feature
+1
-0
features/admin/projects.feature
features/admin/projects.feature
+1
-0
features/admin/users.feature
features/admin/users.feature
+1
-0
features/dashboard/active_tab.feature
features/dashboard/active_tab.feature
+1
-0
features/dashboard/archived_projects.feature
features/dashboard/archived_projects.feature
+1
-0
features/dashboard/dashboard.feature
features/dashboard/dashboard.feature
+1
-0
features/dashboard/event_filters.feature
features/dashboard/event_filters.feature
+1
-0
features/dashboard/help.feature
features/dashboard/help.feature
+1
-0
features/dashboard/issues.feature
features/dashboard/issues.feature
+1
-0
features/dashboard/merge_requests.feature
features/dashboard/merge_requests.feature
+1
-0
features/dashboard/projects.feature
features/dashboard/projects.feature
+1
-0
features/dashboard/search.feature
features/dashboard/search.feature
+1
-0
features/profile/active_tab.feature
features/profile/active_tab.feature
+1
-0
features/profile/emails.feature
features/profile/emails.feature
+1
-0
features/profile/group.feature
features/profile/group.feature
+1
-0
features/profile/notifications.feature
features/profile/notifications.feature
+1
-0
features/profile/profile.feature
features/profile/profile.feature
+1
-0
features/profile/ssh_keys.feature
features/profile/ssh_keys.feature
+1
-0
features/public/projects.feature
features/public/projects.feature
+1
-0
features/public/public_groups.feature
features/public/public_groups.feature
+1
-0
features/snippets/discover.feature
features/snippets/discover.feature
+1
-0
features/snippets/snippets.feature
features/snippets/snippets.feature
+1
-0
features/snippets/user.feature
features/snippets/user.feature
+1
-0
lib/tasks/spinach.rake
lib/tasks/spinach.rake
+21
-0
No files found.
.travis.yml
View file @
e84057da
...
@@ -3,12 +3,14 @@ env:
...
@@ -3,12 +3,14 @@ env:
global
:
global
:
-
TRAVIS=true
-
TRAVIS=true
matrix
:
matrix
:
-
TASK=spinach DB=mysql
-
TASK=spinach_project DB=mysql
-
TASK=spinach_other DB=mysql
-
TASK=spec:api DB=mysql
-
TASK=spec:api DB=mysql
-
TASK=spec:feature DB=mysql
-
TASK=spec:feature DB=mysql
-
TASK=spec:other DB=mysql
-
TASK=spec:other DB=mysql
-
TASK=jasmine:ci 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:api DB=postgresql
-
TASK=spec:feature DB=postgresql
-
TASK=spec:feature DB=postgresql
-
TASK=spec:other DB=postgresql
-
TASK=spec:other DB=postgresql
...
...
features/admin/active_tab.feature
View file @
e84057da
@admin
Feature
:
Admin active tab
Feature
:
Admin active tab
Background
:
Background
:
Given
I sign in as an admin
Given
I sign in as an admin
...
...
features/admin/broadcast_messages.feature
View file @
e84057da
@admin
Feature
:
Admin Broadcast Messages
Feature
:
Admin Broadcast Messages
Background
:
Background
:
Given
I sign in as an admin
Given
I sign in as an admin
...
...
features/admin/groups.feature
View file @
e84057da
@admin
Feature
:
Admin Groups
Feature
:
Admin Groups
Background
:
Background
:
Given
I sign in as an admin
Given
I sign in as an admin
...
...
features/admin/logs.feature
View file @
e84057da
@admin
Feature
:
Admin Logs
Feature
:
Admin Logs
Background
:
Background
:
Given
I sign in as an admin
Given
I sign in as an admin
...
...
features/admin/projects.feature
View file @
e84057da
@admin
Feature
:
Admin Projects
Feature
:
Admin Projects
Background
:
Background
:
Given
I sign in as an admin
Given
I sign in as an admin
...
...
features/admin/users.feature
View file @
e84057da
@admin
Feature
:
Admin Users
Feature
:
Admin Users
Background
:
Background
:
Given
I sign in as an admin
Given
I sign in as an admin
...
...
features/dashboard/active_tab.feature
View file @
e84057da
@dashboard
Feature
:
Dashboard active tab
Feature
:
Dashboard active tab
Background
:
Background
:
Given
I sign in as a user
Given
I sign in as a user
...
...
features/dashboard/archived_projects.feature
View file @
e84057da
@dashboard
Feature
:
Dashboard with archived projects
Feature
:
Dashboard with archived projects
Background
:
Background
:
Given
I sign in as a user
Given
I sign in as a user
...
...
features/dashboard/dashboard.feature
View file @
e84057da
@dashboard
Feature
:
Dashboard
Feature
:
Dashboard
Background
:
Background
:
Given
I sign in as a user
Given
I sign in as a user
...
...
features/dashboard/event_filters.feature
View file @
e84057da
@dashboard
Feature
:
Event filters
Feature
:
Event filters
Background
:
Background
:
Given
I sign in as a user
Given
I sign in as a user
...
...
features/dashboard/help.feature
View file @
e84057da
@dashboard
Feature
:
Help
Feature
:
Help
Background
:
Background
:
Given
I sign in as a user
Given
I sign in as a user
...
...
features/dashboard/issues.feature
View file @
e84057da
@dashboard
Feature
:
Dashboard Issues
Feature
:
Dashboard Issues
Background
:
Background
:
Given
I sign in as a user
Given
I sign in as a user
...
...
features/dashboard/merge_requests.feature
View file @
e84057da
@dashboard
Feature
:
Dashboard Merge Requests
Feature
:
Dashboard Merge Requests
Background
:
Background
:
Given
I sign in as a user
Given
I sign in as a user
...
...
features/dashboard/projects.feature
View file @
e84057da
@dashboard
Feature
:
Dashboard projects
Feature
:
Dashboard projects
Background
:
Background
:
Given
I sign in as a user
Given
I sign in as a user
...
...
features/dashboard/search.feature
View file @
e84057da
@dashboard
Feature
:
Dashboard Search
Feature
:
Dashboard Search
Background
:
Background
:
Given
I sign in as a user
Given
I sign in as a user
...
...
features/profile/active_tab.feature
View file @
e84057da
@profile
Feature
:
Profile active tab
Feature
:
Profile active tab
Background
:
Background
:
Given
I sign in as a user
Given
I sign in as a user
...
...
features/profile/emails.feature
View file @
e84057da
@profile
Feature
:
Profile Emails
Feature
:
Profile Emails
Background
:
Background
:
Given
I sign in as a user
Given
I sign in as a user
...
...
features/profile/group.feature
View file @
e84057da
@profile
Feature
:
Profile Group
Feature
:
Profile Group
Background
:
Background
:
Given
I sign in as
"John Doe"
Given
I sign in as
"John Doe"
...
...
features/profile/notifications.feature
View file @
e84057da
@profile
Feature
:
Profile Notifications
Feature
:
Profile Notifications
Background
:
Background
:
Given
I sign in as a user
Given
I sign in as a user
...
...
features/profile/profile.feature
View file @
e84057da
@profile
Feature
:
Profile
Feature
:
Profile
Background
:
Background
:
Given
I sign in as a user
Given
I sign in as a user
...
...
features/profile/ssh_keys.feature
View file @
e84057da
@profile
Feature
:
Profile SSH Keys
Feature
:
Profile SSH Keys
Background
:
Background
:
Given
I sign in as a user
Given
I sign in as a user
...
...
features/public/projects.feature
View file @
e84057da
@public
Feature
:
Public Projects Feature
Feature
:
Public Projects Feature
Background
:
Background
:
Given
public project
"Community"
Given
public project
"Community"
...
...
features/public/public_groups.feature
View file @
e84057da
@public
Feature
:
Public Projects Feature
Feature
:
Public Projects Feature
Background
:
Background
:
Given
group
"TestGroup"
has private project
"Enterprise"
Given
group
"TestGroup"
has private project
"Enterprise"
...
...
features/snippets/discover.feature
View file @
e84057da
@snippets
Feature
:
Discover Snippets
Feature
:
Discover Snippets
Background
:
Background
:
Given
I sign in as a user
Given
I sign in as a user
...
...
features/snippets/snippets.feature
View file @
e84057da
@snippets
Feature
:
Snippets Feature
Feature
:
Snippets Feature
Background
:
Background
:
Given
I sign in as a user
Given
I sign in as a user
...
...
features/snippets/user.feature
View file @
e84057da
@snippets
Feature
:
User Snippets
Feature
:
User Snippets
Background
:
Background
:
Given
I sign in as a user
Given
I sign in as a user
...
...
lib/tasks/spinach.rake
View file @
e84057da
...
@@ -6,7 +6,28 @@ task :spinach do
...
@@ -6,7 +6,28 @@ task :spinach do
%W(rake gitlab:setup)
,
%W(rake gitlab:setup)
,
%W(spinach)
,
%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
|
cmds
.
each
do
|
cmd
|
system
({
'RAILS_ENV'
=>
'test'
,
'force'
=>
'yes'
},
*
cmd
)
or
raise
(
"
#{
cmd
}
failed!"
)
system
({
'RAILS_ENV'
=>
'test'
,
'force'
=>
'yes'
},
*
cmd
)
or
raise
(
"
#{
cmd
}
failed!"
)
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment