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
Léo-Paul Géneau
gitlab-ce
Commits
127828c6
Commit
127828c6
authored
Mar 26, 2019
by
Zeff Morgan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update testing guide to reference test design
parent
b0a873aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
doc/development/testing_guide/best_practices.md
doc/development/testing_guide/best_practices.md
+15
-0
doc/development/testing_guide/index.md
doc/development/testing_guide/index.md
+1
-1
No files found.
doc/development/testing_guide/best_practices.md
View file @
127828c6
# Testing best practices
## Test Design
Testing at GitLab is a first class citizen, not an afterthought. It's important we consider the design of our tests
as we do the design of our features.
When implementing a feature, we think about developing the right capabilities the right way, which helps us
narrow our scope to a manageable level. When implementing tests for a feature, we must think about developing
the right tests, but then cover _all_ the important ways the test may fail, which can quickly widen our scope to
a level that is difficult to manage.
Test heuristics can help solve this problem. They concisely address many of the common ways bugs
manifest themselves within our code. When designing our tests, take time to review known test heuristics to inform
our test design. We can find some helpful heuristics documented in the Handbook in the
[
Test Design
](
https://about.gitlab.com/handbook/engineering/quality/guidelines/test-engineering/test-design/
)
section.
## Test speed
GitLab has a massive test suite that, without [parallelization], can take hours
...
...
doc/development/testing_guide/index.md
View file @
127828c6
...
...
@@ -33,7 +33,7 @@ changes should be tested.
## [Testing best practices](best_practices.md)
Everything you should know about how to write good tests: RSpec, FactoryBot,
Everything you should know about how to write good tests:
Test Design,
RSpec, FactoryBot,
system tests, parameterized tests etc.
---
...
...
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