Is a full coverage report required for a scan on main branch?

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    SQ 9.7.1

  • what are you trying to achieve
    I want to confirm whether or not providing a full repo coverage report is necessary or required when running a scan for the main branch of that repo? If you don’t, what would the expected result be? Would it mess up the current reported coverage for main?

Yes, a full coverage report must be provided, otherwise you will only see coverage reported for what’s included in the coverage report you pass (not representative of your main branch)

:warning: Make sure you upgrade to SonarQube v9.9 LTS soon, not only to benefit from our Best LTS Ever™, but because soon we will systematically ask users to upgrade when they ask questions about earlier versions of SonarQube, which are now considered unsupported. :smiley: