Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
$outputRoot = Join-Path $PWD 'artifacts\hidi\powershell-coverage'
New-Item -ItemType Directory -Force -Path $outputRoot | Out-Null
$configuration = New-PesterConfiguration
$configuration.Run.Path = 'test\scripts\check-nuget-package-published.Tests.ps1'
$configuration.Run.Path = 'test\Microsoft.OpenApi.Hidi.Tests\check-nuget-package-published.Tests.ps1'
Comment thread
gavinbarron marked this conversation as resolved.
$configuration.Run.PassThru = $true
$configuration.CodeCoverage.Enabled = $true
$configuration.CodeCoverage.Path = $helper
Expand Down
6 changes: 4 additions & 2 deletions src/Microsoft.OpenApi.Hidi/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,10 @@ access, the ESRP connection and protected `nuget-org` environment authorization
before cutover; local packaging does not prove production signing or publishing.

The private-feed helper has isolated Pester 5.7.1 tests (no live feed access).
Run `Invoke-Pester .\test\scripts\check-nuget-package-published.Tests.ps1` to
execute the cases. The Sonar workflow also measures helper line coverage and
Run `Invoke-Pester .\test\Microsoft.OpenApi.Hidi.Tests\check-nuget-package-published.Tests.ps1` to
execute the cases. The test resides physically inside the Hidi test project so
SonarScanner for .NET classifies it as test code, rather than root source code.
The Sonar workflow also measures helper line coverage and
imports a generic coverage report alongside the existing C# OpenCover reports.

### Windows executable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
</ItemGroup>

<ItemGroup>
<None Include="..\scripts\check-nuget-package-published.Tests.ps1" Link="Scripts\check-nuget-package-published.Tests.ps1" />
<None Update="testconfig.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
Expand Down
Loading