JUnit Eclipse插件? [英] JUnit Eclipse Plugin?

查看:144
本文介绍了JUnit Eclipse插件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我觉得愚蠢的无法找到这个,但是Eclipse的JUnit插件在哪里?我的buildpath中包含了最新的 .jar ,但是我仍然没有选择创建一个新的测试用例,用绿色/红色条块运行测试用例等等,我需要这个插件,对吧?

I feel stupid for not being able to find this, but where is the JUnit plugin for Eclipse? I've included the latest .jar in my buildpath, but I still don't have the option to create a new test case, run test cases with the green/red bar, etc. I need the plugin for this, right?

编辑:我正在使用Eclipse for PHP Developers。所以也许这不会自动包含JUnit。我必须再次下载Eclipse,或者我可以以某种方式获得该功能?

I'm using "Eclipse for PHP Developers". So perhaps that wouldn't include JUnit automatically. Do I have to download Eclipse again, or can I just get that functionality somehow?

推荐答案

JUnit是 Eclipse Java开发工具(JDT)。因此,请通过软件更新安装JDT,或者下载并安装 Eclipse IDE for Java Developers (实际上,我建议安装 Eclipse IDE for Java EE开发人员如果您想要一个完整的内置环境进行服务器端开发)。

JUnit is part of Eclipse Java Development Tools (JDT). So, either install the JDT via Software Updates or download and install Eclipse IDE for Java Developers (actually, I'd recommend installing Eclipse IDE for Java EE Developers if you want a complete built-in environment for server side development).

通过右键单击包资源管理器中的项目将其添加到项目中并选择构建路径 - >添加库... 然后只需选择JUnit,然后单击下一步>

You add it to a project by right clicking the project in the Package Explorer and selecting Build Path -> Add Libraries... Then simply select JUnit and click Next >.

这篇关于JUnit Eclipse插件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆