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

High resource consumption when executing TestNG tests in parallel mode with a suite file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.22.3, 3.0.0-M6
    • None
    • None
    • Patch

    Description

      When executing TestNG tests with a suite file, TestNG invokes `@AfterClass` allowing test to free resources, before moving to next test class.

      With parallel test execution, at most number-of-thread test classes get initialized at a time.

      When TestNG is invoked from Surefire without a suite file, many test instances get initialized in sequence, without being torn down, leading to higher resource consumption.

      For resource hungry tests, like in Trino project ( https://github.com/trinodb/trino/ ) this makes a big difference in resource consumption.

      Attachments

        Issue Links

          Activity

            People

              sjaranowski Slawomir Jaranowski
              findepi Piotr Findeisen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: