Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SUREFIRE-1967] Fix parallel test ordering to prevent high resource consumption #407

Commits on Jan 12, 2022

  1. [SUREFIRE-1967] Fix parallel test ordering to prevent high resource c…

    …onsumption
    
    Before the change, TestNG run from Surefire can execute `@BeforeClass`
    on many different test classes/instances, without invoking `@AfterClass`
    yet, leading to high resource utilization. This is not observed when
    tests are invoked via a suite file. This is because `XmlClass.m_index`
    field is used by TestNG to order test execution and this field used not
    to be set by Surefire. This commit lets Surefire initialize `XmlClass`
    object in a similar manner to how TestNG suite file XML parser does.
    findepi committed Jan 12, 2022
    Copy the full SHA
    f291fce View commit details
    Browse the repository at this point in the history