Let's assume I've constructed a (very simple) build pipeline in Jenkins into two jobs:
- Compile-and-unit-tests
- Integration tests
I'd ideally like to get code coverage from both sets of tests into SonarQube. Is this possible? It seems like SonarQube assumes that every update is for the entirety of the project as a single transaction.
At first I was excited to see the addition of incremental analysis, but it seems this is targeted for a different use case: doing a pre-commit check of only changed files.
If there's no way to do this in SonarQube, I'm limited to either only having available (in SonarQube at least) code coverage from the unit tests, or delaying updating the SonarQube project until after step 2--but our integration tests take a very long time, meaning the results in SonarQube would be delayed.
How are people handling this the real world?