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
- links to