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
Jérome Perrin
gitlab-ce
Commits
a7e8939d
Commit
a7e8939d
authored
Apr 12, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve the testing documentation
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
6de5aad2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
23 deletions
+23
-23
doc/development/testing.md
doc/development/testing.md
+23
-23
No files found.
doc/development/testing.md
View file @
a7e8939d
...
@@ -95,29 +95,6 @@ possible).
...
@@ -95,29 +95,6 @@ possible).
[
Poltergeist
]:
https://github.com/teamcapybara/capybara#poltergeist
[
Poltergeist
]:
https://github.com/teamcapybara/capybara#poltergeist
[
RackTest
]:
https://github.com/teamcapybara/capybara#racktest
[
RackTest
]:
https://github.com/teamcapybara/capybara#racktest
### Black-box tests or End-to-end tests
GitLab consists of [multiple pieces] such as [GitLab Shell], [GitLab Workhorse],
[Gitaly], [GitLab Pages], [GitLab Runner], and GitLab Rails. All theses pieces
are configured and packaged by [GitLab Omnibus].
[GitLab QA] is a tool that allows to test that all these pieces integrate well
together by building a Docker image for a given version of GitLab Rails and
running feature tests (i.e. using Capybara) against it.
The actual test scenarios and steps are [part of GitLab Rails] so that they're
always in-sync with the codebase.
[
multiple pieces
]:
./architecture.md#components
[
GitLab Shell
]:
https://gitlab.com/gitlab-org/gitlab-shell
[
GitLab Workhorse
]:
https://gitlab.com/gitlab-org/gitlab-workhorse
[
Gitaly
]:
https://gitlab.com/gitlab-org/gitaly
[
GitLab Pages
]:
https://gitlab.com/gitlab-org/gitlab-pages
[
GitLab Runner
]:
https://gitlab.com/gitlab-org/gitlab-ci-multi-runner
[
GitLab Omnibus
]:
https://gitlab.com/gitlab-org/omnibus-gitlab
[
GitLab QA
]:
https://gitlab.com/gitlab-org/gitlab-qa
[
part of GitLab Rails
]:
https://gitlab.com/gitlab-org/gitlab-ce/tree/master/qa
#### Best practices
#### Best practices
-
Create only the necessary records in the database
-
Create only the necessary records in the database
...
@@ -150,6 +127,29 @@ The reasons why we should follow these best practices are as follows:
...
@@ -150,6 +127,29 @@ The reasons why we should follow these best practices are as follows:
of tests). This is slower than transactions, however, so we want to use
of tests). This is slower than transactions, however, so we want to use
truncation only when necessary.
truncation only when necessary.
### Black-box tests or End-to-end tests
GitLab consists of [multiple pieces] such as [GitLab Shell], [GitLab Workhorse],
[Gitaly], [GitLab Pages], [GitLab Runner], and GitLab Rails. All theses pieces
are configured and packaged by [GitLab Omnibus].
[GitLab QA] is a tool that allows to test that all these pieces integrate well
together by building a Docker image for a given version of GitLab Rails and
running feature tests (i.e. using Capybara) against it.
The actual test scenarios and steps are [part of GitLab Rails] so that they're
always in-sync with the codebase.
[
multiple pieces
]:
./architecture.md#components
[
GitLab Shell
]:
https://gitlab.com/gitlab-org/gitlab-shell
[
GitLab Workhorse
]:
https://gitlab.com/gitlab-org/gitlab-workhorse
[
Gitaly
]:
https://gitlab.com/gitlab-org/gitaly
[
GitLab Pages
]:
https://gitlab.com/gitlab-org/gitlab-pages
[
GitLab Runner
]:
https://gitlab.com/gitlab-org/gitlab-ci-multi-runner
[
GitLab Omnibus
]:
https://gitlab.com/gitlab-org/omnibus-gitlab
[
GitLab QA
]:
https://gitlab.com/gitlab-org/gitlab-qa
[
part of GitLab Rails
]:
https://gitlab.com/gitlab-org/gitlab-ce/tree/master/qa
## How to test at the correct level?
## How to test at the correct level?
As many things in life, deciding what to test at each level of testing is a
As many things in life, deciding what to test at each level of testing is a
...
...
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