VS代码无法解析junit测试
我已经在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为这个问题是由于包放置不正确造成的。我们可以把包放到我图中所示的部分来解决。
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.