Class SmartDirtiesSuiteListener

java.lang.Object
com.github.seregamorph.testsmartcontext.SmartDirtiesTestsSupport
com.github.seregamorph.testsmartcontext.testng.SmartDirtiesSuiteListener
All Implemented Interfaces:
org.testng.IAlterSuiteListener, org.testng.IMethodInterceptor, org.testng.ITestNGListener

public class SmartDirtiesSuiteListener extends SmartDirtiesTestsSupport implements org.testng.IAlterSuiteListener, org.testng.IMethodInterceptor
See description in SmartDirtiesContextTestExecutionListener.

Reorders TestNG test classes in suite grouping ITs with the same context configuration to minimize number of parallel existing contexts.

For Jupiter test classes - see SmartDirtiesClassOrderer, for JUnit 4 test classes - see SmartDirtiesPostDiscoveryFilter.

Author:
Sergey Chernov
  • Constructor Details

    • SmartDirtiesSuiteListener

      public SmartDirtiesSuiteListener()
  • Method Details

    • alter

      public void alter(List<org.testng.xml.XmlSuite> suites)
      Specified by:
      alter in interface org.testng.IAlterSuiteListener
    • intercept

      public List<org.testng.IMethodInstance> intercept(List<org.testng.IMethodInstance> methods, org.testng.ITestContext context)
      Specified by:
      intercept in interface org.testng.IMethodInterceptor