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

test runner under --shard <shard> #48619

Closed
himself65 opened this issue Jul 1, 2023 · 0 comments · Fixed by #48639
Closed

test runner under --shard <shard> #48619

himself65 opened this issue Jul 1, 2023 · 0 comments · Fixed by #48639
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

@himself65
Copy link
Member

himself65 commented Jul 1, 2023

What is the problem this feature will solve?

We use the nodejs test runner in CI because it has the same environment(pure node.js) as the production.

But I found that the single CI running test case needs to be faster because we have many server unit tests.

If shared could be supported, it would reduce the CI runtime because of multi runners.

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

# In different CI runner
node --test --shard=1/5
node --test --shard=2/5
node --test --shard=3/5
node --test --shard=4/5
node --test --shard=5/5

Other test libraries also support this feature:

What alternatives have you considered?

Currently, I have to split the tests into different folders manually.

@himself65 himself65 added the feature request Issues that request new features to be added to Node.js. label Jul 1, 2023
@github-project-automation github-project-automation bot moved this to Pending Triage in Node.js feature requests Jul 1, 2023
@himself65 himself65 added the test Issues and PRs related to the tests. label Jul 1, 2023
@himself65 himself65 changed the title node test runner under --shard <shard> test runner under --shard <shard> Jul 1, 2023
@atlowChemi atlowChemi added test_runner Issues and PRs related to the test runner subsystem. and removed test Issues and PRs related to the tests. labels Jul 1, 2023
@avivkeller avivkeller moved this from Awaiting Triage to Done in Node.js feature requests Jul 1, 2024
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

Successfully merging a pull request may close this issue.

2 participants