Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run Tests Sequentially #49923

Closed
adrian-burlacu-software opened this issue Sep 28, 2023 · 1 comment
Closed

Run Tests Sequentially #49923

adrian-burlacu-software opened this issue Sep 28, 2023 · 1 comment
Labels
feature request Issues that request new features to be added to Node.js. test_runner Issues and PRs related to the test runner subsystem.

Comments

@adrian-burlacu-software
Copy link

adrian-burlacu-software commented Sep 28, 2023

What is the problem this feature will solve?

Some singletons cannot be tested in parallel through the node:test runner:

  • admin features
  • files for test data
  • DBs like SQLite that cannot write concurrently and throw errors

The current test runner runs all the tests in parallel.

What is the feature you are proposing to solve the problem?

Add a --serial flag to maintain single-threaded nature of JS in the test runner by running a single test file(in a child process) at a time not all at once as it does currently.

What alternatives have you considered?

Running tests in the same process, such as the discussion in issue #48871.

@adrian-burlacu-software adrian-burlacu-software added the feature request Issues that request new features to be added to Node.js. label Sep 28, 2023
@bnoordhuis bnoordhuis added the test_runner Issues and PRs related to the test runner subsystem. label Sep 28, 2023
@cjihrig
Copy link
Contributor

cjihrig commented Sep 28, 2023

Closing as a duplicate of #49487.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Issues that request new features to be added to Node.js. test_runner Issues and PRs related to the test runner subsystem.
Projects
None yet
Development

No branches or pull requests

3 participants