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 2019/01/03 09:46:00 UTC

[jira] [Commented] (CAMEL-13001) Route coverage: specify coverage to fail on

    [ https://issues.apache.org/jira/browse/CAMEL-13001?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16732818#comment-16732818 ] 

Claus Ibsen commented on CAMEL-13001:
-------------------------------------

Added the percentage threshold, which you can configure. For example this example uses 90% and outputs now
{code}
[INFO] Discovered 1 routes
[INFO] Route coverage summary:

Class:	sample.camel.MyCamelRouter
Route:	hello

  Line #      Count   Route
  ------      -----   -----
      32          2   from
      33          2     transform
      34          2     filter
      35          1       to
      37          2     filter
      38          0       to
      40          2     to

Coverage: 6 out of 7 (85.7% / threshold 90.0%)
Status: Failed
{code}

> Route coverage: specify coverage to fail on
> -------------------------------------------
>
>                 Key: CAMEL-13001
>                 URL: https://issues.apache.org/jira/browse/CAMEL-13001
>             Project: Camel
>          Issue Type: Improvement
>          Components: tooling
>            Reporter: Aurélien Pupier
>            Priority: Major
>             Fix For: 3.0.0, 2.24.0
>
>
> currently, there is an option to fail the build if the coverage does not reach 100%.
> it would be nice to be able to specify the level of coverage wanted as a parameter of the maven plugin



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)