【问题标题】:How to profile a unit test in Netbeans?如何在 Netbeans 中分析单元测试?
【发布时间】:2011-08-01 23:03:24
【问题描述】:

如何分析在 Ubuntu 上运行的 Netbeans 6.9 中的单元测试?

我的研究表明您使用了“Profile test for ...”菜单项。从主菜单中,您可以在以下位置看到它: Profile : Profile Other : Profile test for ClassName。

在我的情况下,菜单总是被禁用。您如何启用此功能?

【问题讨论】:

    标签: unit-testing netbeans profile


    【解决方案1】:

    Profile Test For File 菜单仅在选择可测试类时启用,无论是在项目窗口中还是打开。选择测试类时不会启用!

    【讨论】:

    • 旧线程,所以事情会发生变化——但我在 NetBeans 9 中没有看到这一点。Profile FileProfile Test File 主菜单和上下文菜单中的项目 Profile源和测试仍然是灰色的。只能选择Profile Project (EJB),这在现阶段是不可取的。
    • 好的,所以 NetBeans 不支持 EJB 项目中的分析文件或测试,只支持整个 shebang。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-12-24
    • 1970-01-01
    • 2012-08-15
    • 1970-01-01
    • 2019-05-24
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多