Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@gitlab.com>2019-08-15 11:04:38 +0300
committerBob Van Landuyt <bob@gitlab.com>2019-08-15 11:04:38 +0300
commitfe0ab065c4da9867683a013c1c22b1ff0a6d8273 (patch)
tree7bb1c3336122e0af0a9eeaa77b085b1585e9bb1a /doc
parent9d16806fc41b41253abb60a4c69ecdee507ae666 (diff)
parentdd84b9a03d24d27edafc861a988239de30f08a46 (diff)
Merge branch 'allow-focus-in-specs' into 'master'
Allow to use focus: true in specs See merge request gitlab-org/gitlab-ce!31691
Diffstat (limited to 'doc')
-rw-r--r--doc/development/testing_guide/best_practices.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/development/testing_guide/best_practices.md b/doc/development/testing_guide/best_practices.md
index 448d9fd01c4..9d6792e9139 100644
--- a/doc/development/testing_guide/best_practices.md
+++ b/doc/development/testing_guide/best_practices.md
@@ -70,6 +70,7 @@ bundle exec rspec spec/[path]/[to]/[spec].rb
- On `before` and `after` hooks, prefer it scoped to `:context` over `:all`
- When using `evaluate_script("$('.js-foo').testSomething()")` (or `execute_script`) which acts on a given element,
use a Capyabara matcher beforehand (e.g. `find('.js-foo')`) to ensure the element actually exists.
+- Use `focus: true` to isolate parts of the specs you want to run.
[four-phase-test]: https://robots.thoughtbot.com/four-phase-test