Only provide new Code Coverage results weekly

I haven´t experimented with this, but we are about to import generated Code Coverage for our application, using the generic xml format. However, generating proper Code Coverage for all our tests takes hours (close to days) due to the nature of the third-party generation of Code Coverage.

What would be the effect of just updating the generic Code Coverage xml file for example every week knowing that in the mean time the lines do not match anymore?

Is it just the inaccuracy of the Code Coverage?
Does SonarQube forget about the old Code Coverage if we do not specify the xml file the next scan?

Hey there.

Yes – and, if you pass old coverage reports, the scan will fail if the report references lines/files that are no longer there.