Skip to content

Parallelism value ignored for the fixed strategy #2273

@rbok78

Description

@rbok78

Steps to reproduce

git clone git@github.com:rbok78/framework-template.git
cd framework-template
mvn clean test -P parallel-execution

Actual outcome

All 4 test methods are kicked off at the same time.

Expected outcome

I use the following configuration for the Maven Surefire Plugin. I expect the number of test methods running in parallel is the same as the parallelism value. I've tried to set it to 1, 2, and 3 but still all 4 test methods run in parallel.

junit.jupiter.execution.parallel.enabled = true
junit.jupiter.execution.parallel.mode.default = concurrent
junit.jupiter.execution.parallel.mode.classes.default = concurrent
junit.jupiter.execution.parallel.config.strategy = fixed
junit.jupiter.execution.parallel.config.fixed.parallelism = 1

Context

  • Linux 5.3.0-46-generic x86_64
  • Ubuntu 19.10
  • OpenJDK 11.0.7
  • Apache Maven 3.6.1
  • Maven Surefire Plugin 3.0.0-M4
  • Jupiter 5.7.0-M1
  • IntelliJ IDEA 2020.1 (Community Edition)

Deliverables

n/a

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions