gpt4 book ai didi

eclipse - eclipse中 `JUnit Plug-in Test`和 `JUnit Test`的区别

转载 作者:行者123 更新时间:2023-12-03 07:33:35 24 4
gpt4 key购买 nike

在eclipse运行命令中,有两个选择:JUnit Plug-in TestJUnit Test .

enter image description here

之前,我尝试启动 eclipse 插件测试( org.eclipse.jdt.ui.tests.refactoring ),但遇到了一些问题( Debugging eclipse unit test code "Test class should have exactly one" and "Workspace is closed" error )。

问题是当我尝试使用 JUnit Test 启动调试器时, 我收到了 Workspace is closed错误。

enter image description here

在 eclipse 配置中,它们具有相同的工作空间。

enter image description here
enter image description here

  • 两者有什么区别?尤其是,工作空间如何为他们工作?
  • 为什么我有 Workspace is closed JUnit 测试运行出错?是否可以使用 JUnit Test 启动 Eclipse 插件测试? ?
  • 最佳答案

    JUnit Plug-in test 用于测试 Eclipse 插件。它运行一个新的 Eclipse 实例。然后,它运行测试。

    JUnit 测试用于测试常规 Java 应用程序。它在不启动新的 Eclipse 实例的情况下运行测试。

    关于eclipse - eclipse中 `JUnit Plug-in Test`和 `JUnit Test`的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13894287/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com