Skip to content

Test Runner test() method concurrency option should specify "application process" instead of "application thread" #60721

@Ethan-Arrowood

Description

@Ethan-Arrowood

Affected URL(s)

https://nodejs.org/docs/latest-v24.x/api/test.html#testname-options-fn

Description of the problem

concurrency <number> | <boolean> If a number is provided, then that many tests would run in parallel within the application thread. If true, all scheduled asynchronous tests run concurrently within the thread. If false, only one test runs at a time. If unspecified, subtests inherit this value from their parent. Default: false.

Based on my understanding of the test runner, tests are executed in processes not threads. I think we should update the text here to be specific. Furthermore, I think we should change in parallel with concurrently as unless you are actually executing the tests in separate threads or process its not actually true parallelism. Similar to the way Promise.all() works, right?

I've had these docs cited to me in a claim that Node.js test runner uses worker threads for test execution, when I don't believe that is the case (and if it is then we need different doc updates).

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.test_runnerIssues and PRs related to the test runner subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions