Updates Find-File and Get-CodeCoverageFilePaths internal functions to exclude duplicate files when provided overlapping Path values to search in. This affects:
Test file paths provided using -Path / Run.Path
Code Coverage source file paths provided using -CodeCoverage / CodeCoverage.Path
Containers created using New-PesterContainer -Path ..
Mulitple containers can still call the same file, e.g. to invoke it with different Data (parameters)
PR also:
Refactors Get-CodeCoverageFilePaths to use Get-ChildItem -File -Recurse for increased performance.
Refactors New-PesterContainer to avoid multiple filesystem searches when provided array of Data for increased performance.
Fix #2530
PR Checklist
[x] PR has meaningful title
[x] Summary describes changes
[x] PR is ready to be merged
If not, use the arrow next to Create Pull Request to mark it as a draft. PR can be marked Ready for review when it's ready.
PR Summary
Updates
Find-File
andGet-CodeCoverageFilePaths
internal functions to exclude duplicate files when provided overlappingPath
values to search in. This affects:-Path / Run.Path
-CodeCoverage / CodeCoverage.Path
New-PesterContainer -Path ..
Data
(parameters)PR also:
Get-CodeCoverageFilePaths
to useGet-ChildItem -File -Recurse
for increased performance.New-PesterContainer
to avoid multiple filesystem searches when provided array of Data for increased performance.Fix #2530
PR Checklist
Create Pull Request
to mark it as a draft. PR can be markedReady for review
when it's ready.