问题
I had a maven module that got analyzed for both Unit-tests and Integration-Tests coverage.
I specifically added sonar.coverage.exclusions to the maven module that I wanted to exclude from coverage analysis.
It worked well with the UT, but the module was still analyzed for IT coverage and I got weird behavior where the overall coverage is smaller than the UT coverage because it looks at more code.
I'm using SonarQube 4.5 with java plugin 2.9.1.
来源:https://stackoverflow.com/questions/29239340/sonar-coverage-exclusions-and-integration-tests-coverage