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: remove redundant cli tests #22355

Closed
wants to merge 1 commit into from
Closed

Conversation

bengl
Copy link
Member

@bengl bengl commented Aug 16, 2018

test/parallel/test-cli-eval.js covers it, and many more things.

Note: I know test redundancy can generally be a good thing, but when I came across test/parallel/test-eval.js, it appeared to me that this was the only test for cli eval. Removing this redundant (and incomplete) test reduces the chances of such confusion in the future. In addition, I'm not sure that redundant tests that simply do exactly the same thing as another test are necessarily useful. (EDIT: On further inspection, I also found that test/parallel/test-eval-require.js is similarly redundant, so this is now removed as well.)

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label Aug 16, 2018
@bengl
Copy link
Member Author

bengl commented Aug 16, 2018

CI: https://ci.nodejs.org/job/node-test-pull-request/16479/

(EDIT:) New CI after removing the second test file: https://ci.nodejs.org/job/node-test-pull-request/16481/ ✔️

@bengl bengl changed the title test: remove redundant cli test test: remove redundant cli tests Aug 16, 2018
@bengl
Copy link
Member Author

bengl commented Aug 16, 2018

/cc @nodejs/testing

@BridgeAR BridgeAR added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Aug 17, 2018
test/parallel/test-cli-eval.js covers them, and many more things.
@bengl
Copy link
Member Author

bengl commented Aug 22, 2018

@bengl
Copy link
Member Author

bengl commented Aug 22, 2018

Landed in 6acb550

@bengl bengl closed this Aug 22, 2018
bengl added a commit that referenced this pull request Aug 22, 2018
test/parallel/test-cli-eval.js covers them, and many more things.

PR-URL: #22355
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: George Adams <george.adams@uk.ibm.com>
targos pushed a commit that referenced this pull request Aug 24, 2018
test/parallel/test-cli-eval.js covers them, and many more things.

PR-URL: #22355
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: George Adams <george.adams@uk.ibm.com>
targos pushed a commit that referenced this pull request Sep 3, 2018
test/parallel/test-cli-eval.js covers them, and many more things.

PR-URL: #22355
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: George Adams <george.adams@uk.ibm.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. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants