From 95cbd69e48fde434ea4298ab74b0b4af4d537210 Mon Sep 17 00:00:00 2001 From: Jeremy Apthorp Date: Thu, 22 Mar 2018 10:19:53 -0700 Subject: [PATCH] Update testing docs to reflect --grep syntax (#12400) * Update testing docs to reflect --grep syntax * Use @zeke's suggestion to s/suites/tests/ --- docs/development/testing.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/development/testing.md b/docs/development/testing.md index a08b6088af30..bd10fc438c9c 100644 --- a/docs/development/testing.md +++ b/docs/development/testing.md @@ -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