Class JunitCustomStrategy

  • All Implemented Interfaces:
    org.junit.platform.engine.support.hierarchical.ParallelExecutionConfiguration , org.junit.platform.engine.support.hierarchical.ParallelExecutionConfigurationStrategy

    
    public final class JunitCustomStrategy
     implements ParallelExecutionConfiguration, ParallelExecutionConfigurationStrategy
                        

    Пользовательская стратегия (custom strategy) для реализации параллелизации запуска автотестов.

    Количество автотестов, запускаемых одновременно, равно количеству логических ядер процессора.

    В настройках проекта следует указать следующие свойства:

    junit.jupiter.execution.parallel.enabled=true
    junit.jupiter.execution.parallel.config.strategy=custom
    junit.jupiter.execution.parallel.config.custom.class=io.bitbucket.dsmoons.framework.odk.JunitCustomStrategy

    У тестового класса указать аннотацию

    @Execution(ExecutionMode.CONCURRENT)
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      JunitCustomStrategy() Конструктор
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description