How to use sonarqube without code coverage (cover all code)

coverage

(0x41414141) #1

So I have a prexisting project that I’m scanning with sonarqube and I’m getting 0% code coverage. Apparently it expects some test cases or something that I’ve never needed to bother with. How can I have it just cover each and every line? May I remind you the vast majority of open source projects don’t have this test case coverage?

I tried creating a new quality gate and removing the “Coverage on New Code” but that did nothing.


(Colin Mueller) #2

Can you please point to some popular open source projects that don’t bother writings tests and tracking code coverage?


(0x41414141) #3

One of the most famous open source project in the security field, used by many projects, including metasploit. Maybe this is more of a thing in the security field…