From 1b6d2812d79c538390f782d2ff98f5caa71d2577 Mon Sep 17 00:00:00 2001 From: Simone Bizzotto Date: Tue, 22 Oct 2024 00:04:06 +0200 Subject: [PATCH] try detect coverage files for pester5 (do Invoke-DbaQuery) --- tests/appveyor.post.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/appveyor.post.ps1 b/tests/appveyor.post.ps1 index 7d695a4560..c515652e45 100644 --- a/tests/appveyor.post.ps1 +++ b/tests/appveyor.post.ps1 @@ -5,11 +5,12 @@ Push-AppveyorArtifact PesterResultsCoverage.json -FileName "PesterResultsCoverag codecov -f PesterResultsCoverage.json --flag "ps,$($env:SCENARIO.ToLowerInvariant())" | Out-Null Write-Host -Object "appveyor.post: Sending coverage data (pester 5)" -ForeGroundColor DarkGreen -$ProjectRoot = $env:APPVEYOR_BUILD_FOLDER, -$ModuleBase = $ProjectRoot, +$ProjectRoot = $env:APPVEYOR_BUILD_FOLDER +$ModuleBase = $ProjectRoot $pester5CoverageFiles = Get-ChildItem -Path "$ModuleBase\Pester5Coverage*.xml" foreach($coverageFile in $pester5CoverageFiles) { + Write-Host -Object "appveyor.post: Sending $($coverageFile.FullName)" -ForeGroundColor DarkGreen Push-AppveyorArtifact $coverageFile.FullName -FileName $coverageFile.Name codecov -f $coverageFile.FullName --flag "ps,$($env:SCENARIO.ToLowerInvariant())" | Out-Null }