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
Kazuhiko Shiozaki
gitlab-ce
Commits
e5d2a81b
Commit
e5d2a81b
authored
Jan 05, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add basic spinach tests for project builds
parent
1b1793c2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
0 deletions
+41
-0
features/project/builds.feature
features/project/builds.feature
+11
-0
features/steps/project/builds.rb
features/steps/project/builds.rb
+14
-0
features/steps/shared/builds.rb
features/steps/shared/builds.rb
+16
-0
No files found.
features/project/builds.feature
0 → 100644
View file @
e5d2a81b
Feature
:
Project Builds
Background
:
Given
I sign in as a user
And
I own a project
And
CI is enabled
And
I have recent build for my project
Scenario
:
I
browse build summary page
When
I visit recent build summary page
Then
I see summary for build
And
I see build trace
features/steps/project/builds.rb
0 → 100644
View file @
e5d2a81b
class
Spinach::Features::ProjectBuilds
<
Spinach
::
FeatureSteps
include
SharedAuthentication
include
SharedProject
include
SharedBuilds
include
RepoHelpers
step
'I see summary for build'
do
expect
(
page
).
to
have_content
"Build #
#{
@build
.
id
}
"
end
step
'I see build trace'
do
expect
(
page
).
to
have_css
'#build-trace'
end
end
features/steps/shared/builds.rb
0 → 100644
View file @
e5d2a81b
module
SharedBuilds
include
Spinach
::
DSL
step
'CI is enabled'
do
@project
.
enable_ci
end
step
'I have recent build for my project'
do
ci_commit
=
create
:ci_commit
,
project:
@project
,
sha:
sample_commit
.
id
@build
=
create
:ci_build
,
commit:
ci_commit
end
step
'I visit recent build summary page'
do
visit
namespace_project_build_path
(
@project
.
namespace
,
@project
,
@build
)
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