Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12491

route-coverage : report summary problem

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.21.0
    • Fix Version/s: 2.21.2, 2.22.0
    • Component/s: tooling
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Consider the example code given in CAMEL-12483

      When running camel:route-coverage the report show to many passes for the routes. It looks like the RouteCoverageEventNotifier files holds the sum of all tests, and not just the values for the single test method. 
       

      Class:  dk.smor.MySpringBootRouter
      Route:  myRouteId
      
        Line #      Count   Route
        ------      -----   -----
            11          8   from
            13          8     log
            15          8     choice
            16          2       setBody
            18          2       log
            20          2       setBody
            22          2       log
            24          2       setBody
            26          2       log
            28          2       setBody
            30          2       log
      
      Coverage: 11 out of 11 (100.0%)
      

      each log statement should only have been passed 1 time. And a total for 4 passes for the whole route.
       

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              smor Stephane Mor
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: