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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
12e09986
Commit
12e09986
authored
Jun 23, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor rake tasks for tests
parent
b5e7096c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
29 deletions
+25
-29
features/project/source/browse_files.feature
features/project/source/browse_files.feature
+1
-1
lib/tasks/spec.rake
lib/tasks/spec.rake
+4
-4
lib/tasks/spinach.rake
lib/tasks/spinach.rake
+20
-24
No files found.
features/project/source/browse_files.feature
View file @
12e09986
...
@@ -45,7 +45,7 @@ Feature: Project Source Browse Files
...
@@ -45,7 +45,7 @@ Feature: Project Source Browse Files
Then
I am redirected to the new file on new branch
Then
I am redirected to the new file on new branch
And
I should see its new content
And
I should see its new content
@javascript
@tricky
@javascript
Scenario
:
I
can create file in empty repo
Scenario
:
I
can create file in empty repo
Given
I own an empty project
Given
I own an empty project
And
I visit my empty project page
And
I visit my empty project page
...
...
lib/tasks/spec.rake
View file @
12e09986
Rake
::
Task
[
"spec"
].
clear
if
Rake
::
Task
.
task_defined?
(
'spec'
)
Rake
::
Task
[
"spec"
].
clear
if
Rake
::
Task
.
task_defined?
(
'spec'
)
namespace
:spec
do
namespace
:spec
do
desc
'G
ITLAB
| Run request specs'
desc
'G
itLab | Rspec
| Run request specs'
task
:api
do
task
:api
do
cmds
=
[
cmds
=
[
%W(rake gitlab:setup)
,
%W(rake gitlab:setup)
,
...
@@ -10,7 +10,7 @@ namespace :spec do
...
@@ -10,7 +10,7 @@ namespace :spec do
run_commands
(
cmds
)
run_commands
(
cmds
)
end
end
desc
'G
ITLAB
| Run feature specs'
desc
'G
itLab | Rspec
| Run feature specs'
task
:feature
do
task
:feature
do
cmds
=
[
cmds
=
[
%W(rake gitlab:setup)
,
%W(rake gitlab:setup)
,
...
@@ -19,7 +19,7 @@ namespace :spec do
...
@@ -19,7 +19,7 @@ namespace :spec do
run_commands
(
cmds
)
run_commands
(
cmds
)
end
end
desc
'G
ITLAB
| Run other specs'
desc
'G
itLab | Rspec
| Run other specs'
task
:other
do
task
:other
do
cmds
=
[
cmds
=
[
%W(rake gitlab:setup)
,
%W(rake gitlab:setup)
,
...
@@ -29,7 +29,7 @@ namespace :spec do
...
@@ -29,7 +29,7 @@ namespace :spec do
end
end
end
end
desc
"G
ITLAB
| Run specs"
desc
"G
itLab
| Run specs"
task
:spec
do
task
:spec
do
cmds
=
[
cmds
=
[
%W(rake gitlab:setup)
,
%W(rake gitlab:setup)
,
...
...
lib/tasks/spinach.rake
View file @
12e09986
Rake
::
Task
[
"spinach"
].
clear
if
Rake
::
Task
.
task_defined?
(
'spinach'
)
Rake
::
Task
[
"spinach"
].
clear
if
Rake
::
Task
.
task_defined?
(
'spinach'
)
desc
"GITLAB | Run spinach"
namespace
:spinach
do
task
:spinach
do
desc
"GitLab | Spinach | Run project spinach features"
tags
=
if
ENV
[
'SEMAPHORE'
]
task
:project
do
'~@tricky'
else
'~@semaphore'
end
cmds
=
[
cmds
=
[
%W(rake gitlab:setup)
,
%W(rake gitlab:setup)
,
%W(spinach --tags
#{
tags
}
)
,
%W(spinach --tags ~@admin,~@dashboard,~@profile,~@public,~@snippets
)
,
]
]
run_commands
(
cmds
)
run_commands
(
cmds
)
end
end
desc
"GITLAB | Run project
spinach features"
desc
"GitLab | Spinach | Run other
spinach features"
task
:spinach_project
do
task
:other
do
cmds
=
[
cmds
=
[
%W(rake gitlab:setup)
,
%W(rake gitlab:setup)
,
%W(spinach --tags ~@admin,~@dashboard,~@profile,~@public,~
@snippets)
,
%W(spinach --tags @admin,@dashboard,@profile,@public,
@snippets)
,
]
]
run_commands
(
cmds
)
run_commands
(
cmds
)
end
end
end
desc
"G
ITLAB | Run other spinach features
"
desc
"G
itLab | Run spinach
"
task
:spinach
_other
do
task
:spinach
do
cmds
=
[
cmds
=
[
%W(rake gitlab:setup)
,
%W(rake gitlab:setup)
,
%W(spinach
--tags @admin,@dashboard,@profile,@public,@snippets
)
,
%W(spinach)
,
]
]
run_commands
(
cmds
)
run_commands
(
cmds
)
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