docs(README): hint on workaround for failing test suite
This commit is contained in:
parent
e1e04e55ed
commit
1280e3165a
1 changed files with 9 additions and 0 deletions
|
|
@ -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 $_)}``
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue