Coverage Delphi code using Sonar using EMMA

I created a Jenkins-Job that parses a Delphi project using Sonar. So I use the delphi sonar plugin, and so far it works very well. To analyze code coverage, I use delphi-code-coverage , which generates EMMA reports. So, I also installed Sonar EMMA-Plugin to get EMMA results in my Sonar report. But it seems that EMMA-Plugin was never executed while running. There is no information on the output, even if it was missed or failed ...

Here is a snippet of my pom.xml:

<sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis> <sonar.surefire.reportsPath>UnitTests</sonar.surefire.reportsPath> <sonar.core.codeCoveragePlugin>emma</sonar.core.codeCoveragePlugin> <sonar.emma.reportPath>UnitTests</sonar.emma.reportPath> 

How can I run the EMMA plugin (in combination with the delphi plugin)? Or is there another way to integrate EMMA reports into my sonar project?

+4
source share
1 answer

The EMMA plugin only works with Java source code. The Delphi plugin has a built-in tool for code coverage, and I'm sure I can not parse EMMA XML files. It is only compatible with AQTime generated CC report. Please view http://docs.codehaus.org/display/SONAR/Delphi+Plugin for more details.

0
source

Source: https://habr.com/ru/post/1433644/


All Articles