Piotr Findeisen created SUREFIRE-1967:
-----------------------------------------

             Summary: High resource consumption when executing TestNG tests in 
parallel mode with a suite file
                 Key: SUREFIRE-1967
                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1967
             Project: Maven Surefire
          Issue Type: Bug
            Reporter: Piotr Findeisen


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/ ),|https://github.com/trinodb/trino/),] 
this makes a big difference in resource consumption.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to