The solution was to add the following dependency:
<dependency> <groupId>org.junit.platform</groupId> <artifactId>junit-platform-launcher</artifactId> <version>1.12.1</version> <scope>test</scope> </dependency>
Reference