-
-
Notifications
You must be signed in to change notification settings - Fork 32k
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
Conversation
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:
|
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? |
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
54657a5
Compare
test runner usage removed |
54657a5
to
e6ff309
Compare
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
97e90bf
Compare
split tests over multiple files
This comment was marked as outdated.
This comment was marked as outdated.
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.
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 <dario.piotrowicz@gmail.com> (@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 <dario.piotrowicz@gmail.com> PR-URL: https://github.com/nodejs/node/pull/58715 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/58715 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> -------------------------------------------------------------------------------- ℹ 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 |
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 <luigipinca@gmail.com>
refactor the test/parallel/test-repl-save-load.js file by:
.clear
on it)Pretty much the same as #58636 🙂