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
diff options
context:
space:
mode:
authorLukas Eipert <git@leipert.io>2018-04-11 01:34:18 +0300
committerLukas Eipert <git@leipert.io>2018-04-11 01:34:18 +0300
commitbd1b2c665f612f304b68205bdf8fc96fdcfa3112 (patch)
treebee391414be8b838cc58b9e4375e89d45105f480 /doc/development/testing_guide
parent6b8f1a1e15a71ec28eb639a2f424e3f202e22dea (diff)
use commander for safer cli argument parsing
Diffstat (limited to 'doc/development/testing_guide')
-rw-r--r--doc/development/testing_guide/frontend_testing.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/development/testing_guide/frontend_testing.md b/doc/development/testing_guide/frontend_testing.md
index 37653758e57..0a6f402d5d2 100644
--- a/doc/development/testing_guide/frontend_testing.md
+++ b/doc/development/testing_guide/frontend_testing.md
@@ -165,18 +165,18 @@ excluded tests (with `fdescribe` or `xdescribe`) to get karma to run only the
tests you want while you're working on a specific feature, but make sure to
remove these directives when you commit your code.
-It is also possible to only run karma on specific folders or files by simply
-appending the file name to the karma command:
+It is also possible to only run karma on specific folders or files by filtering
+the run tests via the argument `--filter-spec` or short `-f`:
```bash
# Run all files
yarn karma-start
# Run specific spec files
-yarn karma-start profile/account/components/update_username_spec.js
+yarn karma-start --filter-spec profile/account/components/update_username_spec.js
# Run specific spec folder
-yarn karma-start profile/account/components/
-# Run all specs in vue_shared and vue_mr_widget
-yarn karma-start /vue_shared/ /vue_mr_widget/
+yarn karma-start --filter-spec profile/account/components/
+# Run all specs which path contain vue_shared or vie
+yarn karma-start -f vue_shared -f vue_mr_widget
```
## RSpec feature integration tests