Repository navigation
Commit 9acddbd
authored
🪲 [Fix]: Configured report paths are honored (#42)
Configured `TestResult_OutputPath` and `CodeCoverage_OutputPath` values
now reach `Invoke-Pester` unchanged, so enabled reports are written to
the locations selected by the caller. Callers that leave either input
empty retain the existing `Invoke-Pester` fallback path relative to
`WorkingDirectory`.
## Fixed: Configured report paths
The action now uses `Invoke-Pester` v5.1.1, which honors configured
report output paths and keeps its action-private temporary state outside
the caller worktree. Set either input independently when that report
needs a custom destination; the other report continues to use its
configured or default behavior.
```yaml
with:
TestResult_OutputPath: artifacts/TestResult/results.xml
CodeCoverage_OutputPath: artifacts/CodeCoverage/coverage.xml
```
## Adopting this release
1. Select the release containing this fix in the
`PSModule/Invoke-ScriptAnalyzer` workflow reference.
2. Existing callers that leave both output-path inputs empty need no
configuration, code, or invocation changes; reports continue to use the
established `Invoke-Pester` defaults below `WorkingDirectory`.
3. Existing callers that already set `TestResult_OutputPath` or
`CodeCoverage_OutputPath` need no configuration change; the configured
location is now honored. Set either input when a report should use a new
custom destination.
## Release impact
| Field | Value |
| --- | --- |
| Effective decision | `release:patch`, selected for a
backward-compatible report-path correction. |
| Semantic effect | Patch, stable; configured output paths now work as
documented and omitted inputs retain their prior behavior. |
| Release/base coordinates | Final coordinates are resolved by the
release process at publication. The published record supplies the target
version, tag, immutable source, version-computation base, and
release/source baseline. |
---
<details>
<summary>Technical details</summary>
### Consumer change record
| Identifier / surface | Before | After | Applicability / prerequisites
| Consumer action | Verification |
| --- | --- | --- | --- | --- | --- |
| REPORT-PATH-OVERRIDE / `TestResult_OutputPath`,
`CodeCoverage_OutputPath` | `Invoke-Pester` v5.1.0 overwrote values
forwarded by this action, so configured destinations were not used. |
`Invoke-Pester` v5.1.1 retains each configured path. Empty inputs retain
`TestResult/PSScriptAnalyzer-TestResult-Report.xml` and
`CodeCoverage/PSScriptAnalyzer-CodeCoverage-Report.xml` below
`WorkingDirectory`. | Callers that enable test-result or code-coverage
reports. | Select this release. No change is needed for existing
configured paths or omitted inputs; optionally set either input to
choose a destination. | The action-test suite verifies explicit generic
`artifacts/...` paths, XML and JSON report creation, absence of legacy
root report and `.temp` directories for the explicit case, and preserved
fallback paths when inputs are omitted. |
### Template baseline
Not applicable. This composite action does not consume an integration
template. Downstream framework adoption is tracked separately in
PSModule/Process-PSModule#541.
### Maintainer evidence
- `action.yml` pins the published `Invoke-Pester` v5.1.1 fix to
immutable commit `c5494aba3c07d7bfd81bdbbc9f301e8fa4a729fb`.
- The focused action-test jobs cover both explicit overrides and
omitted-input fallback behavior; `tests/Assert-ReportPaths.ps1` verifies
generated XML and JSON reports and expected directory isolation.
- `README.md` documents the preserved fallback behavior and generic
explicit override example.
- Implementation plan progress: complete. The report-path regression was
made red against v5.1.0 before the dependency was updated, then passed
with v5.1.1.
- Standards and framework alignment: reviewed GitHub Actions dependency
pinning, action input contracts, PowerShell test conventions, and
Markdown documentation; aligned.
- Issue convergence sweep: the completed diff addresses the configured
report-path regression only; no additional issues were identified as
fully satisfied.
| Changed surface | Standards checked | Framework docs checked | Result
|
| --- | --- | --- | --- |
| `action.yml` | Dependencies, GitHub Actions | Composite action input
contract; Invoke-Pester v5.1.1 release notes | Aligned |
| `.github/workflows/Action-Test.yml`, `tests/Assert-ReportPaths.ps1` |
Testing, GitHub Actions, PowerShell | Invoke-Pester report-path and
temporary-state contract | Aligned |
| `README.md` | Documentation, Markdown | GitHub Action input
documentation | Aligned |
</details>
<details>
<summary>Relevant issues (or links)</summary>
### Related work
- Depends on PSModule/Invoke-Pester#78
- Followed by PSModule/Process-PSModule#541
- Followed by PSModule/Invoke-Pester#85
</details>1 parent 4d633e4 commit 9acddbd
5 files changed
Lines changed: 167 additions & 1 deletion
File tree
- .github/workflows
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
124 | 188 | | |
125 | 189 | | |
126 | 190 | | |
| |||
153 | 217 | | |
154 | 218 | | |
155 | 219 | | |
| 220 | + | |
| 221 | + | |
156 | 222 | | |
157 | 223 | | |
158 | 224 | | |
| |||
165 | 231 | | |
166 | 232 | | |
167 | 233 | | |
| 234 | + | |
| 235 | + | |
168 | 236 | | |
169 | 237 | | |
170 | 238 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
71 | 86 | | |
72 | 87 | | |
73 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
| 285 | + | |
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
54 | 64 | | |
55 | 65 | | |
56 | 66 | | |
| |||
0 commit comments