From 8b9fd711b06139820b15109ef8f2dc3fb89da794 Mon Sep 17 00:00:00 2001 From: michaelbirnstiehl Date: Mon, 14 Sep 2020 15:46:14 -0500 Subject: [PATCH] SONAR-13824 clarify importing .NET reports --- server/sonar-docs/src/pages/analysis/coverage.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/sonar-docs/src/pages/analysis/coverage.md b/server/sonar-docs/src/pages/analysis/coverage.md index 5dfbb9d825e..225a1c55480 100644 --- a/server/sonar-docs/src/pages/analysis/coverage.md +++ b/server/sonar-docs/src/pages/analysis/coverage.md @@ -68,10 +68,12 @@ VB.NET|`sonar.vbnet.vstest.reportsPaths`|Paths to VSTest execution reports. Mult VB.NET|`sonar.vbnet.nunit.reportsPaths`|Paths to NUnit execution reports. Multiple paths may be comma-delimited, or included via wildcards. Note that while measures such as the number of tests are displayed at project level, no drilldown is available. VB.NET|`sonar.vbnet.xunit.reportsPaths`|Paths to xUnit execution reports. Multiple paths may be comma-delimited, or included via wildcards. Note that while measures such as the number of tests are displayed at project level, no drilldown is available. -**Notes on importing .NET reports** -.NET reports are imported into SonarQube in 4 steps: +## Importing .NET reports +To import .NET reports, the report generation process must be executed after the begin step and before the end MSBuild command. The following steps detail importing .NET reports: 1. Run the SonarScanner.MSBuild.exe `begin` command, specifying the absolute path where the reports _will be_ available using the `/d:propertyKey="path"` syntax ("propertyKey" depends on the tool) 1. Build your project using MSBuild 1. Run your test tool, instructing it to produce a report at the same location specified earlier to the MSBuild SonarQube Runner ([How to generate reports with different tools](https://community.sonarsource.com/t/coverage-test-data-generate-reports-for-c-vb-net/9871)) 1. Run the SonarScanner.MSBuild.exe `end` command + +For more information, see the (Generate Reports for C#, VB.net Community Post)[https://community.sonarsource.com/t/coverage-test-data-generate-reports-for-c-vb-net/9871]. \ No newline at end of file -- 2.39.5