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
fed6f395
Commit
fed6f395
authored
Jun 17, 2020
by
drew
Committed by
drew cimino
Jun 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply 3 suggestion(s) to 1 file(s)
parent
018a57aa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
doc/user/project/merge_requests/fail_fast_testing.md
doc/user/project/merge_requests/fail_fast_testing.md
+4
-7
No files found.
doc/user/project/merge_requests/fail_fast_testing.md
View file @
fed6f395
...
@@ -40,22 +40,19 @@ rspec-complete:
...
@@ -40,22 +40,19 @@ rspec-complete:
stage
:
test
stage
:
test
rules
:
rules
:
-
if
:
$CI_PIPELINE_SOURCE == "merge_request_event"
-
if
:
$CI_PIPELINE_SOURCE == "merge_request_event"
script
:
-
bundle install
-
bundle install
-
bundle exec rspec
-
bundle exec rspec
```
```
To run the most relevant specs first instead of the whole suite, the
To run the most relevant specs first instead of the whole suite,
[
`include`
](
../../../ci/yaml/README.md#include
)
[
default configuration
](
https://gitlab.com/gitlab-org/gitlab/-/tree/master/lib/gitlab/ci/templates/Verify/FailFast.gitlab-ci.yml
)
the template by adding the following to your CI/CD configuration:
can be included as a template:
```
yaml
```
yaml
include
:
include
:
-
template
:
Verify/FailFast.gitlab-ci.yml
-
template
:
Verify/FailFast.gitlab-ci.yml
```
```
To run the most relevant specs first instead of the whole suite,
[
`include`
](
../../../ci/yaml/README.md#include
)
the template by adding the following to your CI/CD configuration:
### Example test loads
### Example test loads
For illustrative purposes, let's say our Rails app spec suite consists of 100 specs per model for ten models.
For illustrative purposes, let's say our Rails app spec suite consists of 100 specs per model for ten models.
...
@@ -71,4 +68,4 @@ will run the 100 tests for `example.rb`:
...
@@ -71,4 +68,4 @@ will run the 100 tests for `example.rb`:
-
If all of these 100 tests pass, then the full
`rspec-complete`
suite of 1000 tests is allowed to run.
-
If all of these 100 tests pass, then the full
`rspec-complete`
suite of 1000 tests is allowed to run.
-
If any of these 100 tests fail, they will fail quickly, and
`rspec-complete`
will not run any tests.
-
If any of these 100 tests fail, they will fail quickly, and
`rspec-complete`
will not run any tests.
Th
is
saves resources and time as the full 1000 test suite does not run.
Th
e final case
saves resources and time as the full 1000 test suite does not run.
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