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
481bbd75
Commit
481bbd75
authored
Apr 13, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6766 from jvanbaarsen/split-test-even-further
Split feature tests out to different build job
parents
156465ce
8362026a
Changes
25
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
36 additions
and
25 deletions
+36
-25
.travis.yml
.travis.yml
+2
-0
lib/tasks/spec.rake
lib/tasks/spec.rake
+11
-2
spec/features/admin/admin_hooks_spec.rb
spec/features/admin/admin_hooks_spec.rb
+1
-1
spec/features/admin/admin_projects_spec.rb
spec/features/admin/admin_projects_spec.rb
+1
-1
spec/features/admin/admin_users_spec.rb
spec/features/admin/admin_users_spec.rb
+1
-1
spec/features/admin/security_spec.rb
spec/features/admin/security_spec.rb
+1
-1
spec/features/atom/dashboard_issues_spec.rb
spec/features/atom/dashboard_issues_spec.rb
+1
-1
spec/features/atom/dashboard_spec.rb
spec/features/atom/dashboard_spec.rb
+1
-1
spec/features/atom/issues_spec.rb
spec/features/atom/issues_spec.rb
+1
-1
spec/features/gitlab_flavored_markdown_spec.rb
spec/features/gitlab_flavored_markdown_spec.rb
+1
-1
spec/features/issues_spec.rb
spec/features/issues_spec.rb
+1
-1
spec/features/notes_on_merge_requests_spec.rb
spec/features/notes_on_merge_requests_spec.rb
+1
-1
spec/features/profile_spec.rb
spec/features/profile_spec.rb
+1
-1
spec/features/projects_spec.rb
spec/features/projects_spec.rb
+1
-1
spec/features/search_spec.rb
spec/features/search_spec.rb
+1
-1
spec/features/security/dashboard_access_spec.rb
spec/features/security/dashboard_access_spec.rb
+1
-1
spec/features/security/group/group_access_spec.rb
spec/features/security/group/group_access_spec.rb
+1
-1
spec/features/security/group/internal_group_access_spec.rb
spec/features/security/group/internal_group_access_spec.rb
+1
-1
spec/features/security/group/mixed_group_access_spec.rb
spec/features/security/group/mixed_group_access_spec.rb
+1
-1
spec/features/security/group/public_group_access_spec.rb
spec/features/security/group/public_group_access_spec.rb
+1
-1
spec/features/security/profile_access_spec.rb
spec/features/security/profile_access_spec.rb
+1
-1
spec/features/security/project/internal_access_spec.rb
spec/features/security/project/internal_access_spec.rb
+1
-1
spec/features/security/project/private_access_spec.rb
spec/features/security/project/private_access_spec.rb
+1
-1
spec/features/security/project/public_access_spec.rb
spec/features/security/project/public_access_spec.rb
+1
-1
spec/features/users_spec.rb
spec/features/users_spec.rb
+1
-1
No files found.
.travis.yml
View file @
481bbd75
...
...
@@ -5,10 +5,12 @@ env:
matrix
:
-
TASK=spinach 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=spec:api DB=postgresql
-
TASK=spec:feature DB=postgresql
-
TASK=spec:other DB=postgresql
-
TASK=jasmine:ci DB=postgresql
before_install
:
...
...
lib/tasks/spec.rake
View file @
481bbd75
Rake
::
Task
[
"spec"
].
clear
if
Rake
::
Task
.
task_defined?
(
'spec'
)
namespace
:spec
do
desc
'GITLAB | Run
feature
specs'
desc
'GITLAB | Run
request
specs'
task
:api
do
cmds
=
[
%W(rake gitlab:setup)
,
...
...
@@ -10,11 +10,20 @@ namespace :spec do
run_commands
(
cmds
)
end
desc
'GITLAB | Run feature specs'
task
:feature
do
cmds
=
[
%W(rake gitlab:setup)
,
%W(rspec spec --tag @feature)
]
run_commands
(
cmds
)
end
desc
'GITLAB | Run other specs'
task
:other
do
cmds
=
[
%W(rake gitlab:setup)
,
%W(rspec spec --tag ~@api)
%W(rspec spec --tag ~@api
--tag ~@feature
)
]
run_commands
(
cmds
)
end
...
...
spec/features/admin/admin_hooks_spec.rb
View file @
481bbd75
require
'spec_helper'
describe
"Admin::Hooks"
do
describe
"Admin::Hooks"
,
feature:
true
do
before
do
@project
=
create
(
:project
)
login_as
:admin
...
...
spec/features/admin/admin_projects_spec.rb
View file @
481bbd75
require
'spec_helper'
describe
"Admin::Projects"
do
describe
"Admin::Projects"
,
feature:
true
do
before
do
@project
=
create
(
:project
)
login_as
:admin
...
...
spec/features/admin/admin_users_spec.rb
View file @
481bbd75
require
'spec_helper'
describe
"Admin::Users"
do
describe
"Admin::Users"
,
feature:
true
do
before
{
login_as
:admin
}
describe
"GET /admin/users"
do
...
...
spec/features/admin/security_spec.rb
View file @
481bbd75
require
'spec_helper'
describe
"Admin::Projects"
do
describe
"Admin::Projects"
,
feature:
true
do
describe
"GET /admin/projects"
do
subject
{
admin_projects_path
}
...
...
spec/features/atom/dashboard_issues_spec.rb
View file @
481bbd75
require
'spec_helper'
describe
"Dashboard Issues Feed"
do
describe
"Dashboard Issues Feed"
,
feature:
true
do
describe
"GET /issues"
do
let!
(
:user
)
{
create
(
:user
)
}
let!
(
:project1
)
{
create
(
:project
)
}
...
...
spec/features/atom/dashboard_spec.rb
View file @
481bbd75
require
'spec_helper'
describe
"Dashboard Feed"
do
describe
"Dashboard Feed"
,
feature:
true
do
describe
"GET /"
do
let!
(
:user
)
{
create
(
:user
)
}
...
...
spec/features/atom/issues_spec.rb
View file @
481bbd75
require
'spec_helper'
describe
"Issues Feed"
do
describe
"Issues Feed"
,
feature:
true
do
describe
"GET /issues"
do
let!
(
:user
)
{
create
(
:user
)
}
let!
(
:project
)
{
create
(
:project
)
}
...
...
spec/features/gitlab_flavored_markdown_spec.rb
View file @
481bbd75
require
'spec_helper'
describe
"GitLab Flavored Markdown"
,
feature
s
:
true
do
describe
"GitLab Flavored Markdown"
,
feature:
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/features/issues_spec.rb
View file @
481bbd75
require
'spec_helper'
describe
"Issues"
do
describe
"Issues"
,
feature:
true
do
let
(
:project
)
{
create
(
:project
)
}
before
do
...
...
spec/features/notes_on_merge_requests_spec.rb
View file @
481bbd75
require
'spec_helper'
describe
"On a merge request"
,
js:
true
do
describe
"On a merge request"
,
js:
true
,
feature:
true
do
let!
(
:merge_request
)
{
create
(
:merge_request
,
:simple
)
}
let!
(
:project
)
{
merge_request
.
source_project
}
let!
(
:note
)
{
create
(
:note_on_merge_request
,
:with_attachment
,
project:
project
)
}
...
...
spec/features/profile_spec.rb
View file @
481bbd75
require
'spec_helper'
describe
"Profile account page"
do
describe
"Profile account page"
,
feature:
true
do
before
(
:each
)
{
enable_observers
}
after
(
:each
)
{
disable_observers
}
let
(
:user
)
{
create
(
:user
)
}
...
...
spec/features/projects_spec.rb
View file @
481bbd75
require
'spec_helper'
describe
"Projects"
do
describe
"Projects"
,
feature:
true
do
before
(
:each
)
{
enable_observers
}
after
(
:each
)
{
disable_observers
}
before
{
login_as
:user
}
...
...
spec/features/search_spec.rb
View file @
481bbd75
require
'spec_helper'
describe
"Search"
do
describe
"Search"
,
feature:
true
do
before
do
ActiveRecord
::
Base
.
observers
.
enable
(
:user_observer
)
login_as
:user
...
...
spec/features/security/dashboard_access_spec.rb
View file @
481bbd75
require
'spec_helper'
describe
"Dashboard access"
do
describe
"Dashboard access"
,
feature:
true
do
describe
"GET /dashboard"
do
subject
{
dashboard_path
}
...
...
spec/features/security/group/group_access_spec.rb
View file @
481bbd75
require
'spec_helper'
describe
"Group access"
do
describe
"Group access"
,
feature:
true
do
describe
"GET /projects/new"
do
it
{
new_group_path
.
should
be_allowed_for
:admin
}
it
{
new_group_path
.
should
be_allowed_for
:user
}
...
...
spec/features/security/group/internal_group_access_spec.rb
View file @
481bbd75
require
'spec_helper'
describe
"Group with internal project access"
do
describe
"Group with internal project access"
,
feature:
true
do
describe
"Group"
do
let
(
:group
)
{
create
(
:group
)
}
...
...
spec/features/security/group/mixed_group_access_spec.rb
View file @
481bbd75
require
'spec_helper'
describe
"Group access"
do
describe
"Group access"
,
feature:
true
do
describe
"Group"
do
let
(
:group
)
{
create
(
:group
)
}
...
...
spec/features/security/group/public_group_access_spec.rb
View file @
481bbd75
require
'spec_helper'
describe
"Group with public project access"
do
describe
"Group with public project access"
,
feature:
true
do
describe
"Group"
do
let
(
:group
)
{
create
(
:group
)
}
...
...
spec/features/security/profile_access_spec.rb
View file @
481bbd75
require
'spec_helper'
describe
"Users Security"
do
describe
"Users Security"
,
feature:
true
do
describe
"Project"
do
before
do
@u1
=
create
(
:user
)
...
...
spec/features/security/project/internal_access_spec.rb
View file @
481bbd75
require
'spec_helper'
describe
"Internal Project Access"
do
describe
"Internal Project Access"
,
feature:
true
do
let
(
:project
)
{
create
(
:project
,
:internal
)
}
let
(
:master
)
{
create
(
:user
)
}
...
...
spec/features/security/project/private_access_spec.rb
View file @
481bbd75
require
'spec_helper'
describe
"Private Project Access"
do
describe
"Private Project Access"
,
feature:
true
do
let
(
:project
)
{
create
(
:project
)
}
let
(
:master
)
{
create
(
:user
)
}
...
...
spec/features/security/project/public_access_spec.rb
View file @
481bbd75
require
'spec_helper'
describe
"Public Project Access"
do
describe
"Public Project Access"
,
feature:
true
do
let
(
:project
)
{
create
(
:project
)
}
let
(
:master
)
{
create
(
:user
)
}
...
...
spec/features/users_spec.rb
View file @
481bbd75
require
'spec_helper'
describe
'Users'
do
describe
'Users'
,
feature:
true
do
describe
"GET /users/sign_up"
do
before
do
Gitlab
.
config
.
gitlab
.
stub
(
:signup_enabled
).
and_return
(
true
)
...
...
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