Checklist
What is the issue?
I am writing tests for github actions which are in the .github folder so my tests are in tests/.github
Invoke-Pester does not find these tests unless I explicitly specify tests/.github
This works fine in windows powershell core but not in linux powershell core
I am using pester v5.6.0
Expected Behavior
Invoke-Pester finds all tests in all folders, including hidden folders, without having to explicitly specify the folder name
This should work in linux and in windows
Steps To Reproduce
- Place a tests in a folder named tests/.github
- Call
Invoke-Pester from the parent folder
Observe that the test is discovered in windows but not in linux
Describe your environment
Working (in windows):
Pester version : 5.6.0 C:\Program Files\WindowsPowerShell\Modules\Pester\5.6.0\Pester.psm1
PowerShell version : 5.1.22621.3672
OS version : Microsoft Windows NT 10.0.22631.0
Not working (in WSL2 Ubuntu)
Pester version : 5.6.0 /home/XXXX/.local/share/powershell/Modules/Pester/5.6.0/Pester.psm1
PowerShell version : 7.4.3
OS version : Unix 5.15.153.1
Possible Solution?
No response
Checklist
What is the issue?
I am writing tests for github actions which are in the
.githubfolder so my tests are intests/.githubInvoke-Pesterdoes not find these tests unless I explicitly specifytests/.githubThis works fine in windows powershell core but not in linux powershell core
I am using pester v5.6.0
Expected Behavior
Invoke-Pesterfinds all tests in all folders, including hidden folders, without having to explicitly specify the folder nameThis should work in linux and in windows
Steps To Reproduce
Invoke-Pesterfrom the parent folderObserve that the test is discovered in windows but not in linux
Describe your environment
Working (in windows):
Not working (in WSL2 Ubuntu)
Possible Solution?
No response