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

TestNG test cases not working correctly with groups

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.11.0
    • Fix Version/s: 2.10.6, 2.11.1, 2.12.0
    • Component/s: camel-test
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      When using the Camel TestNG integration, tests work fine when no -groups are specified, but fail if a group is selected.

      This is due to the default behavior of TestNG's annotations. @BeforeClass, @AfterClass, etc need a "alwaysRun = true" argument in order to still run when groups are selected.

      This is really a peculiarity in the way TestNG works, but nonetheless, the Camel support classes do not work with TestNG groups

        Attachments

          Activity

          $i18n.getText('security.level.explanation', $currentSelection) Viewable by All Users
          Cancel

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              mumrah David Arthur

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment