diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index ca6bd5d3..d717f338 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -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' $configuration.Run.PassThru = $true $configuration.CodeCoverage.Enabled = $true $configuration.CodeCoverage.Path = $helper diff --git a/README.md b/README.md index a1e490db..8dce0ca6 100644 --- a/README.md +++ b/README.md @@ -114,8 +114,10 @@ This pipeline implementation does not enable publishing or authorize resources. The SonarCloud workflow runs the private-feed helper tests with Pester 5.7.1 and converts measured JaCoCo line hits to Sonar generic coverage, alongside the -existing C# OpenCover reports. Run the helper tests locally with -`Import-Module Pester -RequiredVersion 5.7.1; Invoke-Pester .\test\scripts\check-nuget-package-published.Tests.ps1`. +existing C# OpenCover reports. The Pester script resides inside the Hidi test +project directory so Sonar assigns it to test sources; a linked sibling file +does not establish that ownership. Run the helper tests locally with +`Import-Module Pester -RequiredVersion 5.7.1; Invoke-Pester .\test\Microsoft.OpenApi.Hidi.Tests\check-nuget-package-published.Tests.ps1`. --- diff --git a/test/scripts/check-nuget-package-published.Tests.ps1 b/test/Microsoft.OpenApi.Hidi.Tests/check-nuget-package-published.Tests.ps1 similarity index 100% rename from test/scripts/check-nuget-package-published.Tests.ps1 rename to test/Microsoft.OpenApi.Hidi.Tests/check-nuget-package-published.Tests.ps1