Commit f527e23
authored
📖 [Docs]: Process-PSModule test phase data guidance updated (#48)
Process-PSModule documentation now clarifies how test phase data is
exposed across module-local setup, test, and teardown phases. Module
authors can use one `TestData` payload with consistent environment
variable names in `BeforeAll`, Pester tests, and `AfterAll`, and can
troubleshoot callers that rely on `secrets: inherit` without explicitly
building the JSON payload.
- Related: PSModule/Process-PSModule#386
## Changed: Test phase data guidance is clearer
The Process-PSModule usage guide now names the setup, test, and teardown
phases that receive `TestData` keys and documents that the same
environment variable names should be available in each phase.
## Fixed: Troubleshooting guidance for missing setup or teardown keys
The usage guide now explains that `secrets: inherit` only forwards
secrets that already exist by name. It does not build the `TestData`
JSON payload from individual secrets, so callers must explicitly
construct and pass that value.
## Technical Details
- Updated `src/docs/Frameworks/Process-PSModule/usage.md` under the
Frameworks → Process-PSModule docs.
- Left the existing uncommitted
`src/docs/Coding-Standards/GitHub-Actions.md` workspace change
untouched.
- Local validation: `.github/scripts/Test-DocumentationLink.ps1` passed.1 parent b59e6bb commit f527e23
1 file changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
137 | 147 | | |
138 | 148 | | |
139 | 149 | | |
| |||
161 | 171 | | |
162 | 172 | | |
163 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
164 | 177 | | |
165 | 178 | | |
166 | 179 | | |
| |||
0 commit comments