如何在Sublime Text 3中运行Junit?

发布于 2025-01-27 05:52:26 字数 564 浏览 2 评论 0原文

我已经完成了此处提到的所有事情: https://www.javatpoint.com/ junit-tutorial
我使用崇高的文本3,并将错误消息包含在图像中。
junit4-4.8.2.jarhamcrest-core-1.3.jarc:\ junit中存在 javatpoint代码文件在c:\ junit_workspace \ junittesting中。

我是做错了什么还是在崇高的文本3中根本不可能?

code screenshot

I have done everything as mentioned here: https://www.javatpoint.com/junit-tutorial
I use sublime text 3 and have included the error message as a image.
junit4-4.8.2.jar and hamcrest-core-1.3.jar are present in C:\Junit.
the javatpoint code file is in C:\Junit_workspace\junittesting.

Am I doing something wrong or is it simply not possible in Sublime Text 3?

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

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

发布评论

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

评论(1

酒儿 2025-02-03 05:52:26

使用Maven或Gradle来管理您的项目。他们将允许您指定所拥有的库依赖关系并管理类路径。

还请注意,最新版本的Junit是5.x。

不能说我真的使用过崇高,但是还有一个原因您不使用Intellij之类的IDE吗?

Use Maven or Gradle to manage your project. They'll allow you to specify the library dependencies you have and manage the classpath.

Note also that the latest version of JUnit is 5.x.

Can't say I've ever used Sublime really, but is there also a reason you're not using an IDE like IntelliJ?

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