title: Report Code Coverage in Azure Pipeline for SonarQube not found
body: <p>I'm struggling to generate a code coverage repot in Azure DevOps Pipeline for SonarQube. I need this Code Coverage report so SonarQube will be aware about total code coveraged in the Unit Tests.</p>
  <p>I am getting this error message in the step to get the report created during the Unit tests:</p>
  <pre><code>2022-01-20T15:56:14.9054419Z ========================== Starting Command Output ===========================
  2022-01-20T15:56:14.9976248Z ##[command]&quot;C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe&quot; -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command &quot;. 'D:\Agents\xx\_work\_temp\cd6ffda1-xx-799dfd098791.ps1'&quot;
  2022-01-20T15:56:18.7184739Z You can invoke the tool using the following command: reportgenerator
  2022-01-20T15:56:18.7185160Z Tool 'dotnet-reportgenerator-globaltool' (version '5.0.2') was successfully installed.
  2022-01-20T15:56:18.9728580Z 2022-01-20T07:56:18: Arguments
  2022-01-20T15:56:18.9729027Z 2022-01-20T07:56:18:  -reports:D:\Agents\xxx\_work\26\s/**/TestResults/coverage.opencover.xml
  2022-01-20T15:56:18.9729118Z 2022-01-20T07:56:18:  -targetdir:coverage/Cobertura
  2022-01-20T15:56:18.9729175Z 2022-01-20T07:56:18:  -reporttypes:Cobertura;HTMLInline;HTMLChart
  2022-01-20T15:56:19.1740700Z 2022-01-20T07:56:19: The report file pattern 'D:\Agents\xxx\_work\26\s/**/TestResults/coverage.opencover.xml' found no matching files.
  2022-01-20T15:56:19.1741530Z 2022-01-20T07:56:19: No report files specified.
  2022-01-20T15:56:19.8181717Z ##[error]PowerShell exited with code '1'.
  2022-01-20T15:56:19.8683861Z ##[section]Finishing: Generate Coverage Report
  
  </code></pre>
  <p>Steps that I followed to generate the report in Azure Pipeline:</p>
  <p>1- After a &quot;dotnet build&quot; step I included a &quot;dotnet test&quot; with the following arguments:</p>
  <pre><code>steps:
  - task: DotNetCoreCLI@2
    displayName: 'dotnet test'
    inputs:
      command: test
      projects: '**/UnitTests.csproj'
      arguments: '--configuration $(buildConfiguration) /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput=./TestResults/'
    continueOnError: true
  
  </code></pre>
  <p>2- After &quot;dotnet test&quot; step I included a PowerShell script to get the report generated and Convert this report into Cobertura format for Azure DevOps:</p>
  <pre><code>steps:
  - powershell: |
     dotnet tool install dotnet-reportgenerator-globaltool --tool-path .
     ./reportgenerator &quot;-reports:$(Build.SourcesDirectory)/**/TestResults/coverage.opencover.xml&quot; &quot;-targetdir:coverage/Cobertura&quot; &quot;-reporttypes:Cobertura;HTMLInline;HTMLChart&quot;
    displayName: 'Generate Coverage Report'
  
  </code></pre>
  <p>As far as I know after this Powershell step I will have to include 2 more steps to publish the reports into Azure and Sonarqube. However, it looks like I have some issues to find the report generated during the Unit Tests.</p>
  <p>Any idea about this?</p>
  <p>Thanks.</p>