mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Update testing docs to reflect --grep syntax (#12400)
* Update testing docs to reflect --grep syntax * Use @zeke's suggestion to s/suites/tests/
This commit is contained in:
committed by
Shelley Vohr
parent
f41cce96a3
commit
95cbd69e48
@@ -36,9 +36,9 @@ app (surprise!) that can be found in the `spec` folder. Note that it has
|
||||
its own `package.json` and that its dependencies are therefore not defined
|
||||
in the top-level `package.json`.
|
||||
|
||||
To run only a selected number of tests, run `npm run test -match=NAME`,
|
||||
replacing the `NAME` with the file name of the test suite you would like
|
||||
to run. As an example: If you want to run only IPC suites, you would run
|
||||
`npm run test -match=ipc`.
|
||||
To run only specific tests matching a pattern, run `npm run test --
|
||||
-g=PATTERN`, replacing the `PATTERN` with a regex that matches the tests
|
||||
you would like to run. As an example: If you want to run only IPC tests, you
|
||||
would run `npm run test -- -g ipc`.
|
||||
|
||||
[standard-addons]: https://standardjs.com/#are-there-text-editor-plugins
|
||||
|
||||
Reference in New Issue
Block a user