Skip to content

Commit 174efc7

Browse files
🩹 [Patch]: Update output paths in initialization script to use absolute paths (#27)
## Description This pull request includes a change to the `scripts/init.ps1` file to modify the paths for test result and code coverage report outputs. * `scripts/init.ps1`: * Updated the `TestResult.OutputPath` and `CodeCoverage.OutputPath` to use the current working directory (`$pwd`) for generating test reports, aligning with the use of `WorkingDirectory`. ## Type of change <!-- Use the check-boxes [x] on the options that are relevant. --> - [ ] 📖 [Docs] - [ ] 🪲 [Fix] - [x] 🩹 [Patch] - [ ] ⚠️ [Security fix] - [ ] 🚀 [Feature] - [ ] 🌟 [Breaking change] ## Checklist <!-- Use the check-boxes [x] on the options that are relevant. --> - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas
1 parent 6b5898a commit 174efc7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/init.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ LogGroup 'Init - Export containers' {
219219

220220
LogGroup 'Init - Export configuration' {
221221
$artifactName = $configuration.TestResult.TestSuiteName ?? 'Pester'
222-
$configuration.TestResult.OutputPath = "test_reports/$artifactName-TestResult-Report.xml"
223-
$configuration.CodeCoverage.OutputPath = "test_reports/$artifactName-CodeCoverage-Report.xml"
222+
$configuration.TestResult.OutputPath = "$pwd/test_reports/$artifactName-TestResult-Report.xml"
223+
$configuration.CodeCoverage.OutputPath = "$pwd/test_reports/$artifactName-CodeCoverage-Report.xml"
224224
$configuration.Run.PassThru = $true
225225

226226
Format-Hashtable -Hashtable $configuration

0 commit comments

Comments
 (0)