VS代码无法解析junit测试

发布于 2025-01-15 04:48:51 字数 305 浏览 2 评论 0原文

我已经在 vs code 上创建了 java 项目,现在我尝试运行 junit 测试,但 vs code 发现有问题。我已经安装了 JUnit JAR Downloader、Java Extension pack 和 Junit Testfile Generator,但问题仍然存在图片显示。 错误提示:包 org.junit 不存在

I've made java project on vs code and now I'm trying to run junit tests but vs code sees there's something wrong.I've installed JUnit JAR Downloader ,Java Extension pack and Junit Testfile Generator, but the problem still exists as the image shows.
Error says: package org.junit does not exist

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

心如荒岛 2025-01-22 04:48:51

我认为这个问题是由于包放置不正确造成的。我们可以把包放到我图中所示的部分来解决。

输入图片此处描述

I think this problem is caused by the incorrect placement of the package. We can put the package in the part shown in my picture to solve it.

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文