I am using JUnit 5 in my Maven project.
My junit-platform.properties looks like this:
junit.jupiter.execution.parallel.enabled=true
junit.jupiter.execution.parallel.mode.default=concurrent
When running the tests inside IntelliJ or with Maven locally, the test are executed in parallel.
However, when running them on Cloud Build inside a Maven Docker container, they seem to run sequentially.
This is how they are called:
steps:
- name: 'maven:3-jdk-11-slim'
args: [
'mvn',
# https://stackoverflow.com/a/53513809/3067148
'-Dorg.slf4j.simpleLogger.showDateTime=true',
'-Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss,SSS',
'-B',
'test'
]
What could be the reason why they aren't executed in parallel?