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
iv
gitlab-ce
Commits
25eadf0c
Commit
25eadf0c
authored
Apr 11, 2014
by
Jeroen van Baarsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Proposal for split testing
parent
4881d493
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
12 deletions
+33
-12
lib/tasks/spec.rake
lib/tasks/spec.rake
+31
-10
spec/features/gitlab_flavored_markdown_spec.rb
spec/features/gitlab_flavored_markdown_spec.rb
+1
-1
spec/models/assembla_service_spec.rb
spec/models/assembla_service_spec.rb
+1
-1
No files found.
lib/tasks/spec.rake
View file @
25eadf0c
Rake
::
Task
[
"spec"
].
clear
if
Rake
::
Task
.
task_defined?
(
'spec'
)
namespace
:testing
do
desc
'GITLAB | Run model specs'
task
:models
do
cmds
=
[
%W(rake gitlab:setup)
,
%W(rspec spec --tag @models)
]
run_commands
(
cmds
)
end
desc
'GITLAB | Run feature specs'
task
:features
do
cmds
=
[
%W(rake gitlab:setup)
,
%W(rspec spec --tag @features)
]
run_commands
(
cmds
)
end
desc
"GITLAB | Run specs"
task
:spec
do
cmds
=
[
%W(rake gitlab:setup)
,
%W(rspec spec)
,
]
desc
'GITLAB | Run other specs'
task
:other
do
cmds
=
[
%W(rake gitlab:setup)
,
%W(rspec spec --tag ~@models --tag ~@features)
]
run_commands
(
cmds
)
end
cmds
.
each
do
|
cmd
|
system
({
'RAILS_ENV'
=>
'test'
,
'force'
=>
'yes'
},
*
cmd
)
raise
"
#{
cmd
}
failed!"
unless
$?
.
exitstatus
.
zero?
def
run_commands
(
cmds
)
cmds
.
each
do
|
cmd
|
system
({
'RAILS_ENV'
=>
'test'
,
'force'
=>
'yes'
},
*
cmd
)
raise
"
#{
cmd
}
failed!"
unless
$?
.
exitstatus
.
zero?
end
end
end
spec/features/gitlab_flavored_markdown_spec.rb
View file @
25eadf0c
require
'spec_helper'
describe
"GitLab Flavored Markdown"
do
describe
"GitLab Flavored Markdown"
,
features:
true
do
let
(
:project
)
{
create
(
:project
)
}
let
(
:issue
)
{
create
(
:issue
,
project:
project
)
}
let
(
:merge_request
)
{
create
(
:merge_request
,
source_project:
project
,
target_project:
project
)
}
...
...
spec/models/assembla_service_spec.rb
View file @
25eadf0c
...
...
@@ -19,7 +19,7 @@
require
'spec_helper'
describe
AssemblaService
do
describe
AssemblaService
,
models:
true
do
describe
"Associations"
do
it
{
should
belong_to
:project
}
it
{
should
have_one
:service_hook
}
...
...
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