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

Route coverage: When and otherwise are not marked as covered

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      • use a route with a choice with when and otherwise inside.
      • launch mvn test camel:route-coverage
      • when and otherwise are marked with a 0 count even if they were used

      examples of the CBR examples available in Eclipse Fuse Tooling:

      Route:	cbr-route
      
        Line #      Count   Route
        ------      -----   -----
            33          5   from
            34          5     log
            35          5     choice
            36          0       when
            38          2         log
            39          2         to
            41          0       when
            43          2         log
            44          2         to
            46          0       otherwise
            47          1         log
            48          1         to
            51          5     log
      
      Coverage: 10 out of 13 (76.9%)

      we can notice that elements inside when and otherwise are well counted but when and otherwise are at 0

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            apupier Aurélien Pupier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: