You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tibor Digana (Jira)" <ji...@apache.org> on 2022/04/02 15:10:00 UTC

[jira] [Updated] (SUREFIRE-1967) High resource consumption when executing TestNG tests in parallel mode with a suite file

     [ https://issues.apache.org/jira/browse/SUREFIRE-1967?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tibor Digana updated SUREFIRE-1967:
-----------------------------------
    Fix Version/s: 2.22.3

> 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
>            Assignee: Slawomir Jaranowski
>            Priority: Major
>             Fix For: 2.22.3, 3.0.0-M6
>
>
> 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.



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