如何在eclipse中轻松创建单元测试 [英] How to create unit tests easily in eclipse

查看:159
本文介绍了如何在eclipse中轻松创建单元测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过选择方法轻松创建单元测试。 eclipse里有一个工具吗?它应该支持模板。我应该能够创建积极的测试和负面测试。

I want to create unit tests easily by just selecting method. Is there a tool in eclipse that does that. It should support templates. I should be able to create positive test as well as negative tests.

推荐答案

您可以使用我的插件轻松创建测试

You can use my plug-in to create tests easily:


  1. 突出显示方法

  2. Ctrl + Alt + Shift + U

  3. 它将为其创建单元测试。

  1. highlight the method
  2. press Ctrl+Alt+Shift+U
  3. it will create the unit test for it.

该插件可以这里。希望这有帮助。

The plug-in is available here. Hope this helps.

这篇关于如何在eclipse中轻松创建单元测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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