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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
0ebe5d7e
Commit
0ebe5d7e
authored
Feb 20, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
6f550e74
233b6e0d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
6 deletions
+14
-6
doc/development/testing_guide/testing_levels.md
doc/development/testing_guide/testing_levels.md
+4
-0
qa/README.md
qa/README.md
+9
-5
spec/services/web_hook_service_spec.rb
spec/services/web_hook_service_spec.rb
+1
-1
No files found.
doc/development/testing_guide/testing_levels.md
View file @
0ebe5d7e
...
...
@@ -159,6 +159,10 @@ Every new feature should come with a [test plan].
> See [end-to-end tests](end_to_end_tests.md) for more information.
Note that
`qa/spec`
contains unit tests of the QA framework itself, not to be
confused with the application's
[
unit tests
](
#unit-tests
)
or
[
end-to-end tests
](
#black-box-tests-at-the-system-level-aka-end-to-end-tests
)
.
[
multiple pieces
]:
../architecture.md#components
[
GitLab Shell
]:
https://gitlab.com/gitlab-org/gitlab-shell
[
GitLab Workhorse
]:
https://gitlab.com/gitlab-org/gitlab-workhorse
...
...
qa/README.md
View file @
0ebe5d7e
# GitLab QA -
Integration
tests for GitLab
# GitLab QA -
End-to-end
tests for GitLab
This directory contains integration tests for GitLab.
This directory contains
[
end-to-end tests
](
doc/development/testing_guide/end_to_end_tests.md
)
for GitLab. It includes the test framework and the tests themselves.
The tests can be found in
`qa/specs/features`
(not to be confused with the unit
tests for the test framework, which are in
`spec/`
).
It is part of the
[
GitLab QA project
](
https://gitlab.com/gitlab-org/gitlab-qa
)
.
## What is it?
GitLab QA is an
integration
tests suite for GitLab.
GitLab QA is an
end-to-end
tests suite for GitLab.
These are black-box and entirely click-driven
integration
tests you can run
These are black-box and entirely click-driven
end-to-end
tests you can run
against any existing instance.
## How does it work?
1.
When we release a new version of GitLab, we build a Docker images for it.
1.
Along with GitLab Docker Images we also build and publish GitLab QA images.
1.
GitLab QA project uses these images to execute
integration
tests.
1.
GitLab QA project uses these images to execute
end-to-end
tests.
## Validating GitLab views / partials / selectors in merge requests
...
...
spec/services/web_hook_service_spec.rb
View file @
0ebe5d7e
...
...
@@ -102,7 +102,7 @@ describe WebHookService do
exception
=
exception_class
.
new
(
'Exception message'
)
WebMock
.
stub_request
(
:post
,
project_hook
.
url
).
to_raise
(
exception
)
expect
(
service_instance
.
execute
).
to
eq
({
status: :error
,
message:
exception
.
message
})
expect
(
service_instance
.
execute
).
to
eq
({
status: :error
,
message:
exception
.
to_s
})
expect
{
service_instance
.
execute
}.
not_to
raise_error
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