camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <>
Subject [jira] [Commented] (CAMEL-8657) Add Maven Plugin to generate route coverage report
Date Sat, 18 Apr 2015 09:20:58 GMT


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

- 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:
>             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

View raw message