简体   繁体   English

VS 代码无法解析 junit 测试

[英]VS code doesn't resolve junit test

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.我已经在 vs code 上创建了 java 项目,现在我正在尝试运行 junit 测试,但是 vs code 发现有问题。我已经安装了 JUnit JAR 下载器,Java 扩展包和 8869824 测试文件 Gen33088 仍然存在问题,但是图片显示。 Error says: package org.junit does not exist错误提示:package org.junit 不存在

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.我认为这个问题是package放置不正确造成的,我们可以把package放在我图中的部分来解决。

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM