Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.4k
test: refactor repl save-load tests#58715
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: refactor repl save-load tests #58715
Uh oh!
There was an error while loading. Please reload this page.
Conversation
dario-piotrowicz commented Jun 15, 2025 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
codecovbot commented Jun 15, 2025 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@## main #58715 +/- ## ========================================== - Coverage 90.13% 90.11% -0.02% ========================================== Files 639 639 Lines 188192 188192 Branches 36916 36905 -11 ========================================== - Hits 169633 169598 -35 - Misses 11324 11339 +15 - Partials 7235 7255 +20 🚀 New features to boost your workflow:
|
lpinca commented Jun 15, 2025 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
It was discussed ad ad nauseam and there is no real benefit to these refactorings. Can you please add comments instead or split the tests into multiple files? |
dario-piotrowicz commented Jun 15, 2025
The tests needed refactoring and since I was already at it I didn't see much harm in going with the test runner (which is my personal preference). That is not the focal point of this refactoring so I will refactor this not to use the test runner not to get into already overly discussed arguments. |
aca8dd8 to 54657a5Comparedario-piotrowicz commented Jun 15, 2025
test runner usage removed |
54657a5 to e6ff309CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
refactor the test/parallel/test-repl-save-load.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) - clearly separating and commenting the various tests to make clearer what is being tested
e6ff309 to 97e90bfComparesplit tests over multiple files
This comment was marked as outdated.
This comment was marked as outdated.
dario-piotrowicz commented Jun 19, 2025
thanks @lpinca 🫶 |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
nodejs-github-bot commented Jun 20, 2025
nodejs-github-bot commented Jun 21, 2025
Commit Queue failed- Loading data for nodejs/node/pull/58715 ✔ Done loading data for nodejs/node/pull/58715 ----------------------------------- PR info ------------------------------------ Title test: refactor repl save-load tests (#58715) Author Dario Piotrowicz <[email protected]> (@dario-piotrowicz) Branch dario-piotrowicz:dario/refactor-test-repl-save-load -> nodejs:main Labels test, author ready, needs-ci, commit-queue-squash Commits 2 - test: refactor repl save-load tests - fixup! test: refactor repl save-load tests Committers 1 - Dario Piotrowicz <[email protected]> PR-URL: https://github.com/nodejs/node/pull/58715 Reviewed-By: Luigi Pinca <[email protected]> ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/58715 Reviewed-By: Luigi Pinca <[email protected]> -------------------------------------------------------------------------------- ℹ This PR was created on Sun, 15 Jun 2025 12:55:54 GMT ✔ Approvals: 1 ✔ - Luigi Pinca (@lpinca): https://github.com/nodejs/node/pull/58715#pullrequestreview-2943994619 ✘ This PR needs to wait 24 more hours to land (or 0 hours if there is one more approval) ✔ Last GitHub CI successful ℹ Last Full PR CI on 2025-06-20T17:08:02Z: https://ci.nodejs.org/job/node-test-pull-request/67573/ - Querying data for job/node-test-pull-request/67573/ ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/15795695104 |
910a8af into nodejs:mainUh oh!
There was an error while loading. Please reload this page.
nodejs-github-bot commented Jun 22, 2025
Landed in 910a8af |
refactor the test/parallel/test-repl-save-load.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) - clearly separating and commenting the various tests to make clearer what is being tested PR-URL: #58715 Reviewed-By: Luigi Pinca <[email protected]>
aduh95 commented Jul 21, 2025
Backport is blocked on the backport of #57909 |
refactor the test/parallel/test-repl-save-load.js file by:
.clearon it)Pretty much the same as #58636 🙂