Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/unit-testing/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Unit testing 如何在Netbeans中评测单元测试?_Unit Testing_Netbeans_Profile - Fatal编程技术网

Unit testing 如何在Netbeans中评测单元测试?

Unit testing 如何在Netbeans中评测单元测试?,unit-testing,netbeans,profile,Unit Testing,Netbeans,Profile,如何在Ubuntu上运行的Netbeans 6.9中评测单元测试 我的研究表明,您使用了“Profile test for…”菜单项。从主菜单中可以看到:Profile:Profile Other:Profile test for ClassName 在我的情况下,菜单始终处于禁用状态。如何启用此功能?只有在项目窗口或打开可测试类时,才会启用“文件配置文件测试”菜单。当选择测试类时,它将不会被启用 旧线程,所以事情会发生变化——但我在NetBeans 9中没有看到这一点。主Profile菜单和源

如何在Ubuntu上运行的Netbeans 6.9中评测单元测试

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


在我的情况下,菜单始终处于禁用状态。如何启用此功能?

只有在项目窗口或打开可测试类时,才会启用“文件配置文件测试”菜单。当选择测试类时,它将不会被启用

旧线程,所以事情会发生变化——但我在NetBeans 9中没有看到这一点。主
Profile
菜单和源和测试上下文菜单中的
Profile File File
Profile Test File
项保持灰色。只能选择
评测项目
(EJB),这在现阶段是不可取的。好吧,所以NetBeans不支持EJB项目中的评测文件或测试,只支持整个项目。