docs(README): hint on workaround for failing test suite

This commit is contained in:
Rodweil, Theodor 2023-08-06 22:25:47 +02:00
parent e1e04e55ed
commit 1280e3165a
No known key found for this signature in database
GPG key ID: F8BC1B0EB1F9CCF5

View file

@ -110,5 +110,14 @@ does not work as expected on the `Import-Module` cmdlet (within the `BeforeAll`
script blocks). Therefore it is advised to wrap the `Invoke-Pester` as follows
so that the global scope gets teared down after execution.
``$ pwsh -c "Invoke-Pester PSConfluencePublisher/*.Tests.ps1 -Show 'All'"``
There currently is an issue with the invocation of the test suites (see
[Pester Issue #2386](https://github.com/pester/Pester/issues/2386)), where
some tests fail, if ran via the wildcard discovery.
Execute the following from within a PowerShell session to temporarily circumvent
this problem:
``PS > Get-ChildItem Contoso/*.Tests.ps1 | ForEach {pwsh -c Invoke-Pester (Resolve-Path -Relative $_)}``