From 1280e3165ae5fe4bc44aafa714c9198f141223b1 Mon Sep 17 00:00:00 2001 From: "Rodweil, Theodor" Date: Sun, 6 Aug 2023 22:25:47 +0200 Subject: [PATCH] docs(README): hint on workaround for failing test suite --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 6c512e8..e480e36 100755 --- a/README.md +++ b/README.md @@ -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 $_)}``