Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-2064

Implementation of TestNG "parallel" option fails with default value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0-M6
    • 2.22.3, 3.0.0-M7
    • TestNG support
    • None

    Description

      The latest release of Maven Surefire attempts to resolve an incompatibility with TestNG 7.4+, but the way the fix was implemented causes projects that don't specify parallel execution to fail:

      [ERROR] There was an error in the forked process
      [ERROR] Unsupported TestNG parallel setting: none ( only METHODS or CLASSES supported )
      [ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: There was an error in the forked process
      [ERROR] Unsupported TestNG parallel setting: none ( only METHODS or CLASSES supported ) 
      

      "none" is the default value that gets passed in if no [parallel] setting is specified. TestNG actually supports NONE as a valid value, along with TESTS and INSTANCES. There are two deprecated values as well (TRUE and FALSE), which cause TestNG to log a warning and translate to equivalent supported values (METHODS and NONE respectively).

      Attachments

        Issue Links

          Activity

            People

              tibordigana Tibor Digana
              scoba Scott Babcock
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: