Using the Perspective as "New Code", Coverage shows up as hyphen

  • Version - 9.3.0.51899

  • Trying to retrieve New code Coverage percentage of the previous analysis.

  • Detailed description - When there is a minor change on the project, the New Code coverage value shows up as hypen on the dashboard. Is there a way to retrieve the Previous New code coverage value using the Web API or through any other means ?

Hey there.

It’s not possible to retrieve historical “new” measures – and, I’m curious how your New Code Period is defined for this project. Does the value reset on every analysis? This could indicate an issue with your configuration (like having an NCP of Previous Version while passing a new sonar.projectVersion on each analysis)