-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
test: refactor repl tab complete tests #58636
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
Merged
nodejs-github-bot
merged 2 commits into
nodejs:main
from
dario-piotrowicz:dario/repl-complete-tests-refactor
Jun 15, 2025
Merged
test: refactor repl tab complete tests #58636
nodejs-github-bot
merged 2 commits into
nodejs:main
from
dario-piotrowicz:dario/repl-complete-tests-refactor
Jun 15, 2025
+1,003
−734
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dario-piotrowicz
commented
Jun 8, 2025
Comment on lines
-56
to
-61
// TODO: the following async IIFE and the completePromise function are necessary because | ||
// the reply tests are all run against the same repl instance (testMe) and thus coordination | ||
// needs to be in place for the tests not to interfere with each other, this is really | ||
// not ideal, the tests in this file should be refactored so that each use its own isolated | ||
// repl instance, making sure that no special coordination needs to be in place for them | ||
// and also allowing the tests to all be run in parallel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PS: this is the driving reason for this PR
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #58636 +/- ##
==========================================
- Coverage 90.16% 90.15% -0.02%
==========================================
Files 637 637
Lines 188001 188001
Branches 36881 36877 -4
==========================================
- Hits 169509 169484 -25
- Misses 11238 11286 +48
+ Partials 7254 7231 -23 🚀 New features to boost your workflow:
|
puskin
approved these changes
Jun 9, 2025
ae1c33f
to
ce45b2a
Compare
cc. @nodejs/repl would anyone like to have a look? 🙂 |
aduh95
reviewed
Jun 14, 2025
refactor the test/parallel/test-repl-tab-complete.js file by: - making the tests in the file self-contained (instead of all of them sharing the same REPL instance and constantly calling `.clear` on it) - using the test runner with appropriate descriptions to make clearer what is being tested - extracting some tests in their own js test files (to increase isolation of the tests and help with issues such as flakiness)
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
40bfac8
to
0d6cb84
Compare
jasnell
approved these changes
Jun 14, 2025
This comment was marked as outdated.
This comment was marked as outdated.
Landed in aee9bc0 |
targos
pushed a commit
that referenced
this pull request
Jun 16, 2025
refactor the test/parallel/test-repl-tab-complete.js file by: - making the tests in the file self-contained (instead of all of them sharing the same REPL instance and constantly calling `.clear` on it) - using the test runner with appropriate descriptions to make clearer what is being tested - extracting some tests in their own js test files (to increase isolation of the tests and help with issues such as flakiness) PR-URL: #58636 Reviewed-By: Giovanni Bucci <github@puskin.it> Reviewed-By: James M Snell <jasnell@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
author ready
PRs that have at least one approval, no pending requests for changes, and a CI started.
commit-queue-squash
Add this label to instruct the Commit Queue to squash all the PR commits into the first one.
needs-ci
PRs that need a full CI run.
test
Issues and PRs related to the tests.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
refactor the test/parallel/test-repl-tab-complete.js file by:
.clear
on it)