You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2015/04/18 11:20:58 UTC
[jira] [Commented] (CAMEL-8657) Add Maven Plugin to generate route
coverage report
[ https://issues.apache.org/jira/browse/CAMEL-8657?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14501204#comment-14501204 ]
Claus Ibsen commented on CAMEL-8657:
------------------------------------
We are not so far of now, there is api in camel-core to dump the route coverage as xml, which camel-test can dump to files automatic.
What is needed is then a maven report plugin that traverses those xml files and generate a nice
- index.html
- html file per unit test
The html file then shows the route as xml, and then have green / red color lines (or what we choose) to highlight the coverage of the routes. There can be tooltips to show processing times per node, or something like that.
Maybe take a look at cobertura or emma reports how they do it for java code.
> Add Maven Plugin to generate route coverage report
> --------------------------------------------------
>
> Key: CAMEL-8657
> URL: https://issues.apache.org/jira/browse/CAMEL-8657
> Project: Camel
> Issue Type: New Feature
> Components: tests, tooling
> Reporter: Claus Ibsen
> Fix For: 2.16.0
>
>
> With help from CAMEL-8656 we can enable unit tests to generate xml files with route statistics.
> What we need is then a mvn plugin to generate a nice report from those, such as a html page that has a summary, and then a detailed route with colored lines for route usage, so you can spot which routes has unused parts etc.
> For starters the route can be dumped as xml from the report as its already in xml format. Its a matter of removing the noise, and then apply css or what style to do if exchangesTotal=0 and if its > 0 etc.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)