你可以使用Sonar和差异视图在新代码上获取代码覆盖率: 代码覆盖率差异 http://docs.sonarqube.org/download/attachments/3080855/PeriodsCoverage.png?version=2&modificationDate=1433247329000&api=v2&effects=drop-shadow 更多信息请访问:http://docs.sonarqube.org/display/SONAR/Differential+Views