docs(README): update testing suite description

This commit is contained in:
Rodweil, Theodor 2023-07-31 00:04:10 +02:00
parent 3c7ba0e2a4
commit fd4ed3011a
No known key found for this signature in database
GPG key ID: F8BC1B0EB1F9CCF5

View file

@ -82,4 +82,15 @@ to `Continue`, or `Inquire` in your shell's *Global* scope.
This program requires [Pester](https://pester.dev/) to execute it's test suite. This program requires [Pester](https://pester.dev/) to execute it's test suite.
You can execute the following from within a PowerShell session.
``PS> Invoke-Pester PSConfluencePublisher/*.Tests.ps1 -Show 'All'`` ``PS> Invoke-Pester PSConfluencePublisher/*.Tests.ps1 -Show 'All'``
However the test suite still requires optimization towards execution, as Pester
requires a certain setup for tests of nested modules to work. The `Force` switch
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.
``PS> pwsh -c "Invoke-Pester PSConfluencePublisher/*.Tests.ps1 -Show 'All'"``