From c53a674be7fce781251d11b41d0bc67e8fe90e24 Mon Sep 17 00:00:00 2001 From: Aditya Pratap Singh Date: Sat, 4 May 2019 13:45:48 +0200 Subject: [PATCH] doc: add example to test doc for clarity Update the documentation for test execution for tests in a single file PR-URL: https://github.com/nodejs/node/pull/27561 Reviewed-By: Rich Trott Reviewed-By: Trivikram Kamat --- BUILDING.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/BUILDING.md b/BUILDING.md index a077eb933b1df4..8f35fa20cde45b 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -295,10 +295,11 @@ If you want to run the linter without running tests, use `make lint`/`vcbuild lint`. It will run both JavaScript linting and C++ linting. -If you are updating tests and just want to run a single test to check it: +If you are updating tests and want to run tests in a single test file +(e.g. `test/parallel/test-stream2-transform.js`): ```text -$ python tools/test.py -J --mode=release parallel/test-stream2-transform +$ python tools/test.py parallel/test-stream2-transform.js ``` You can execute the entire suite of tests for a given subsystem