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

TestNG test cases not working correctly with groups

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.11.0
    • 2.10.6, 2.11.1, 2.12.0
    • camel-test
    • None
    • 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

          People

            davsclaus Claus Ibsen
            mumrah David Arthur
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: