最近在做项目使用junit写单元测试的时候,发现了一个奇怪的问题,单个测试类正常但是整个项目不通过,这个问题很奇葩,但是找不到原因。思考了一下,可能是共享变量的问题。

如下链接也是碰到了这个问题

https://cloud.tencent.com/developer/ask/sof/584911

在此记录一下,方便后面排查问题。

https://blog.csdn.net/lxlmycsdnfree/article/details/77886072

https://maven.apache.org/components/surefire/maven-surefire-plugin/examples/fork-options-and-parallel-execution.html

 https://blog.csdn.net/j16421881/article/details/78638768

https://maven.apache.org/surefire-archives/maven-surefire-2.15/maven-failsafe-plugin/examples/fork-options-and-parallel-execution.html

Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐