I’ve been tasked with getting monthly code coverage stats but i’m struggling to find how to do that. Specifically I need to report on the number of new lines of code each month, and the associated coverage percentage of those new lines - basically to ensure anything new has unit tests (not worried about historical uncovered code).
I can get the differences between release versions but i can’t do the same monthly or by date. Any ideas on how this might be achievable?
Unfortunately, I struggle in knowing how to answer you. SonarQube wasn’t really built for this. The easiest thing to do here would be to set the New Code Period to the first of each month & then just watch the New Code values you need. Unfortunately, that would likely disrupt the development workflow unless they release at the beginning of each month.
Thanks for the reply. I didn’t think it would be straight forward and i think your suggestion of monthly new code period is what i will try. If i find anything else i’ll update here