Is there possibility to create Cobertura report ?
Best Answer
-
Hi again,
Cobertura is a tool to report code coverage from Java code. Its domain is to report coverage of code which was executed. The format of Cobertura reports is therefore designed to represent code coverage information, like class, method, lines covered (executed at runtime), covered branches, and other code coverage-related information. Cobertura reports do not have notion of test results at all, not even unit tests.
Here is an example of Cobertura report for reference:
https://raw.githubusercontent.com/jenkinsci/cobertura-plugin/master/src/test/resources/hudson/plugins/cobertura/coverage-with-data.xml
Even if Cobertura is tailored to Java, it could possibly represent coverage information (and coverage only) from other languages.However, static analysis is completely different thing from runtime testing, and its results are of different type.
Static analysis results represent information related to standard compliance issues as a result of C++test "reviewing" source code, errors detected by flow analysis, static analysis violation details, and so on. This is all static data, while Cobertura is meant to represent dynamic results.Therefore, Cobertura report format is not applicable to static analysis domain. We would not be able to use it to represent results and violations reported by C++test static analysis.
5
Answers
-
Hi @elch,
Just to clarify:
Do you mean this Cobertura?:
http://cobertura.github.io/cobertura/I am asking because Cobertura is Java code coverage tool, so it does not really apply to C/C++, and to static analysis in particular.
1 -
A lot of tools not related to Java have an option to save there reports in Cobertura xml format. Is there an option to create such xml format .
a lot of plug ins for TFS and Jenkins.Thanks
0 -
Once we have Cobertura xml , there is a possibility to have interrogation with TFS dashboard.
Thanks
0