Skip to content

test: add additional deprecation warning tests for rmdir recursive - #35683

Closed
iansu wants to merge 2 commits into
nodejs:masterfrom
iansu:more-rmdir-recursive-tests
Closed

test: add additional deprecation warning tests for rmdir recursive#35683
iansu wants to merge 2 commits into
nodejs:masterfrom
iansu:more-rmdir-recursive-tests

Conversation

@iansu

@iansuiansu commented Oct 16, 2020

Copy link
Copy Markdown
Contributor

The recently added code coverage in #35653 highlighted an uncovered case of the rmdir recursive deprecation warning. This PR adds two new tests to ensure we cover all the places where the deprecation warning can be shown in both the sync and async versions.

cc @bcoe @nodejs/tooling

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

@nodejs-github-botnodejs-github-bot added the test Issues and PRs related to the tests. label Oct 16, 2020
@iansuiansu changed the title fs: add additional deprecation warning tests for rmdir recursivetest: add additional deprecation warning tests for rmdir recursiveOct 16, 2020
@iansu
iansuforce-pushed the more-rmdir-recursive-tests branch from 1c6e32d to 4ea6e4aCompareOctober 16, 2020 18:11

@bcoebcoe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking good to me, it would be good to run your new tests with coverage.

I will add a section to the docs on how to do so.


tmpdir.refresh();


Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: we usually try to avoid unrelated whitespace changes.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to know. I'm pretty sure I accidentally added this extra whitespace in my previous PR so I was just cleaning it up.

@TrottTrott added the request-ci Add this label to start a Jenkins CI on a PR. label Oct 17, 2020
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Oct 17, 2020
@nodejs-github-bot

This comment has been minimized.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Comment threadtest/parallel/test-fs-rmdir-recursive-warns-on-file.js Outdated
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
@codecov-io

Copy link
Copy Markdown

Codecov Report

Merging #35683 into master will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@ Coverage Diff @@## master #35683 +/- ##
=======================================
Coverage 96.40% 96.40% =======================================
Files 220 220 Lines 73681 73675 -6 =======================================
- Hits 71031 71028 -3 + Misses 2650 2647 -3 
Impacted FilesCoverage Δ
lib/internal/url.js93.94% <0.00%> (-0.03%)⬇️
lib/_http_server.js98.45% <0.00%> (+0.10%)⬆️
lib/internal/fs/utils.js95.97% <0.00%> (+0.23%)⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7f25fe8...2589f98. Read the comment docs.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@bcoe

bcoe commented Oct 21, 2020

Copy link
Copy Markdown
Contributor

@tniessen@aduh95 checking whether your review has been addressed?

@bcoebcoe added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Oct 23, 2020
aduh95 pushed a commit that referenced this pull request Oct 24, 2020
PR-URL: #35683
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ben Coe <bencoe@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
@aduh95

Copy link
Copy Markdown
Contributor

Landed in c5b9b5b

@aduh95aduh95 closed this Oct 24, 2020
targos pushed a commit that referenced this pull request Nov 3, 2020
PR-URL: #35683
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ben Coe <bencoe@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
@targostargos mentioned this pull request Nov 3, 2020
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.testIssues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@iansu@nodejs-github-bot@codecov-io@bcoe@aduh95@Trott@tniessen@BethGriggs