Commit ed5a3828 authored by Craig Norris's avatar Craig Norris

Merge branch 'doc-328018' into 'master'

WTD-21 - Update fail_fast_testing.md

See merge request gitlab-org/gitlab!60216
parents c45b9155 62614a52
...@@ -49,7 +49,7 @@ This template requires: ...@@ -49,7 +49,7 @@ This template requires:
## Configuring Fast RSpec Failure ## Configuring Fast RSpec Failure
We'll use the following plain RSpec configuration as a starting point. It installs all the We use the following plain RSpec configuration as a starting point. It installs all the
project gems and executes `rspec`, on merge request pipelines only. project gems and executes `rspec`, on merge request pipelines only.
```yaml ```yaml
...@@ -86,13 +86,13 @@ For illustrative purposes, let's say our Rails app spec suite consists of 100 sp ...@@ -86,13 +86,13 @@ For illustrative purposes, let's say our Rails app spec suite consists of 100 sp
If no Ruby files are changed: If no Ruby files are changed:
- `rspec-rails-modified-paths-specs` will not run any tests. - `rspec-rails-modified-paths-specs` does not run any tests.
- `rspec-complete` will run the full suite of 1000 tests. - `rspec-complete` runs the full suite of 1000 tests.
If one Ruby model is changed, for example `app/models/example.rb`, then `rspec-rails-modified-paths-specs` If one Ruby model is changed, for example `app/models/example.rb`, then `rspec-rails-modified-paths-specs`
will run the 100 tests for `example.rb`: runs 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 fail quickly, and `rspec-complete` does not run any tests.
The final case saves resources and time as the full 1000 test suite does not run. The final case saves resources and time as the full 1000 test suite does not run.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment