Skip to content

Commit

Permalink
try detect coverage files for pester5 (do Invoke-DbaQuery)
Browse files Browse the repository at this point in the history
  • Loading branch information
niphlod committed Oct 21, 2024
1 parent f681e78 commit 1b6d281
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/appveyor.post.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 1b6d281

Please sign in to comment.