gpt4 book ai didi

spring-boot - Maven 在部署时没有运行我的模拟测试

转载 作者:行者123 更新时间:2023-12-04 08:42:29 26 4
gpt4 key购买 nike

我的项目中有模拟测试。我想部署我的项目,但 maven 在部署时没有运行我的一些测试。
enter image description here
这是我的部署 View 。
enter image description here

最佳答案

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-junit47</artifactId>
<version>3.0.0-M5</version>
</dependency>
</dependencies>
</plugin>
</plugins>
以前,我也遇到过同样的问题。我不知道你的 pom.xml 但是当我添加这个依赖项时它起作用了。如果你的 pom.xml 中还没有这个,你可以试一试。

关于spring-boot - Maven 在部署时没有运行我的模拟测试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64488755/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com