code coverage is showing 0%
Hi , Welcome to this forum.
What language are you analyzing ?
Generally speaking, Analysis doesn’t run your tests or generate coverage reports for you. That has to be done before analysis and fed in in the form of reports
There is a doc for this
1 Like
I am using .net application. mvc framwork .
You will need to run a coverage tool like Visual Studio Code Coverage, dotCover, or OpenCover
and doc says to refer it with analysis property respectively :
sonar.cs.vscoveragexml.reportsPaths
, sonar.cs.dotcover.reportsPaths
or
sonar.cs.opencover.reportsPaths
There is also a Notes on importing .NET reports on the same page
1 Like