@@ -373,6 +373,11 @@ Otherwise, the test is considered to be a failure. Test files must be
373
373
executable by Node.js, but are not required to use the ` node:test ` module
374
374
internally.
375
375
376
+ Each test file is executed as if it was a regular script. That is, if the test
377
+ file itself uses ` node:test ` to define tests, all of those tests will be
378
+ executed within a single application thread, regardless of the value of the
379
+ ` concurrency ` option of [ ` test() ` ] [ ] .
380
+
376
381
## Collecting code coverage
377
382
378
383
When Node.js is started with the [ ` --experimental-test-coverage ` ] [ ]
@@ -718,7 +723,8 @@ changes:
718
723
* ` options ` {Object} Configuration options for running tests. The following
719
724
properties are supported:
720
725
* ` concurrency ` {number|boolean} If a number is provided,
721
- then that many files would run in parallel.
726
+ then that many test processes would run in parallel, where each process
727
+ corresponds to one test file.
722
728
If ` true ` , it would run ` os.availableParallelism() - 1 ` test files in
723
729
parallel.
724
730
If ` false ` , it would only run one test file at a time.
@@ -782,7 +788,7 @@ changes:
782
788
* ` options ` {Object} Configuration options for the test. The following
783
789
properties are supported:
784
790
* ` concurrency ` {number|boolean} If a number is provided,
785
- then that many tests would run in parallel.
791
+ then that many tests would run in parallel within the application thread .
786
792
If ` true ` , it would run ` os.availableParallelism() - 1 ` tests in parallel.
787
793
For subtests, it will be ` Infinity ` tests in parallel.
788
794
If ` false ` , it would only run one test at a time.
@@ -1683,7 +1689,7 @@ changes:
1683
1689
* ` options ` {Object} Configuration options for the subtest. The following
1684
1690
properties are supported:
1685
1691
* ` concurrency ` {number|boolean|null} If a number is provided,
1686
- then that many tests would run in parallel.
1692
+ then that many tests would run in parallel within the application thread .
1687
1693
If ` true ` , it would run all subtests in parallel.
1688
1694
If ` false ` , it would only run one test at a time.
1689
1695
If unspecified, subtests inherit this value from their parent.
0 commit comments