Skip to content

Hidden dir/file handling - #387

Merged
peterdesmet merged 7 commits into
mainfrom
hidden_dir
Oct 27, 2026
Merged

peterdesmet merged 7 commits into
mainfrom
hidden_dir

Conversation

@peterdesmet

Copy link
Copy Markdown
Member

Fix #385: R CMD checked return a NOTE regarding hidden files (required by a test). These are now temporarily created as part of the test.

Fix #386: All tempdirs created by tests are now handled by withr::local_tempdir(), which has the advantage that they are removed automatically (no need for on.exit(unlink(dir, recursive = TRUE))).

This are changes that don't affect the users of developers, so I feel no need to mention this in NEWS.

@peterdesmet peterdesmet changed the title Hidden dir Hidden dir/file handling Oct 23, 2026
@codecov

codecov Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (d0a0cc5) to head (51d1371).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #387   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           29        29           
  Lines          833       833           
=========================================
  Hits           833       833           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@peterdesmet
peterdesmet added this pull request to stack #390 October 26, 2026 08:27
For Windows, the resulting path of a created file is ".hidden\\filede44e5be4\\filede42d6b31e0", which passes grep and does not raise an error, thereby failing the test/

grep could be extended, but Windows-style paths are never expected in path anyway and should be handled in a seperate check. See #391

@sannegovaert sannegovaert 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.

All good!

Logged #392 for documentation

@peterdesmet
peterdesmet merged commit 548074c into main Oct 27, 2026
9 checks passed
@peterdesmet
peterdesmet deleted the hidden_dir branch October 27, 2026 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use withr::local_tempdir() for creating temp dirs in test Handle hidden files test

2 participants