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

camel-debug - Allow to disable timeouts with Camel test

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 3.18.0
    • 3.x
    • camel-test
    • None
    • Unknown

    Description

      When debugging a Camel test, it would be convenient to be able to disable timeouts.

      Similar feature specific to JUnit test https://junit.org/junit5/docs/current/user-guide/#writing-tests-declarative-timeouts-mode

      I spotted NotifyBuilder which is used in test that has timeouts. Need to lookup if there are other ways to have timeouts in test

      I think there would 2 main categories:

      • when Java debugging is used. In this case, maybe can reuse same heurisitic than for JUnit
      • when Camel debugging. In this case, the heuristic to detect the debug must be different.

      maybe a configuration parameter camel.test.execution.timeout.mode can be provided. With potential values enabled, disabled, disabled_on_debug.

      The default mode for JUnit is enabled. So I guess we should use it too. Maybe worth defaulting to disabled_on_debug when camel-debug is on classpath.

      Attachments

        Activity

          People

            Unassigned Unassigned
            apupier Aurélien Pupier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: