Skip to content

Commit cfb845d

Browse files
Document the Pester major-version lock in the test pipeline
1 parent 0c90c32 commit cfb845d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ The [PSModule - SourceCode tests](./scripts/tests/SourceCode/PSModule/PSModule.T
176176

177177
[workflow](./.github/workflows/Test-ModuleLocal.yml)
178178
- Imports and tests the module in parallel (matrix) using Pester tests from the module repository.
179+
- Test files lock Pester to the **6.x** major version via `#Requires -Modules @{ ModuleName = 'Pester'; ModuleVersion = '6.0.0'; MaximumVersion = '6.999.999'; GUID = 'a699dea5-2c73-4616-a270-1f7abb777e71' }`. The [Invoke-Pester](https://github.com/PSModule/Invoke-Pester) action installs a matching `6.x`, so minor and patch updates flow in automatically while a new major stays a deliberate, reviewed change.
179180
- Supports setup and teardown scripts executed via separate dedicated jobs:
180181
- `BeforeAll`: Runs once before all test matrix jobs to set up the test environment (e.g., deploy infrastructure, download test data).
181182
- `AfterAll`: Runs once after all test matrix jobs complete to clean up the test environment (e.g., remove test resources, clean up databases).

0 commit comments

Comments
 (0)