在 pom.xml 文件中添加如下依赖即可
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId>
<scope>test</scope>
</dependency>

使用JUnit Platform Launcher进行测试
这篇博客介绍了如何在pom.xml文件中添加JUnit Platform Launcher的依赖,以支持测试执行。通过引入该依赖,开发者可以更好地集成和运行JUnit 5测试框架的测试用例。
在 pom.xml 文件中添加如下依赖即可
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId>
<scope>test</scope>
</dependency>

1万+
2508
1万+

被折叠的 条评论
为什么被折叠?