doc: enrich test command with executable

PR-URL: https://github.com/nodejs/node/pull/44347
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
This commit is contained in:
Tony Gorez 2023-02-06 08:50:07 +01:00 committed by GitHub
parent 63eca7fec0
commit 2dacd0708a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -342,12 +342,17 @@ the `--help` option:
$ tools/test.py --help
```
> Note: On Windows you should use `python3` executable.
> Example: `python3 tools/test.py test/message`
You can usually run tests directly with node:
```text
$ ./node ./test/parallel/test-stream2-transform.js
$ ./node test/parallel/test-stream2-transform.js
```
> Info: `./node` points to your local Node.js build.
Remember to recompile with `make -j4` in between test runs if you change code in
the `lib` or `src` directories.