File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -352,6 +352,25 @@ You can also execute the tests in a test suite directory
352352tools/test.py test/message
353353```
354354
355+ You can execute tests that match a specific naming pattern using the wildcard
356+ ` * ` . For example, to run all tests under ` test/parallel ` with a name that starts
357+ with ` test-stream- ` :
358+
359+ ``` bash
360+ tools/test.py test/parallel/test-stream-*
361+ # In some shell environments, you may need to quote the pattern
362+ tools/test.py " test/parallel/test-stream-*"
363+ ```
364+
365+ The whildcard ` * ` can be used in any part of the path. For example, to run all tests
366+ with a name that starts with ` test-inspector- ` , regardless of the directory they are in:
367+
368+ ``` bash
369+ # Matches test/sequential/test-inspector-*, test/parallel/test-inspector-*,
370+ # test/known_issues/test-inspector-*, etc.
371+ tools/test.py test/* /test-inspector-*
372+ ```
373+
355374If you want to check the other options, please refer to the help by using
356375the ` --help ` option:
357376
Original file line number Diff line number Diff line change @@ -485,6 +485,11 @@ To generate a test coverage report, see the
485485Nightly coverage reports for the Node.js ` main ` branch are available at
486486< https://coverage.nodejs.org/ > .
487487
488+ ## Running tests
489+
490+ See the [ Building guide] ( ../../BUILDING.md#running-tests ) for details on how to
491+ run tests.
492+
488493[ ASCII ] : https://man7.org/linux/man-pages/man7/ascii.7.html
489494[ Google Test ] : https://github.com/google/googletest
490495[ Test Coverage section of the Building guide ] : https://github.com/nodejs/node/blob/HEAD/BUILDING.md#running-coverage
You can’t perform that action at this time.
0 commit comments