自动生成Java的单元测试

自动生成Java的单元测试

本文介绍了自动生成Java的单元测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

Java 代码自动生成单元测试的任何工具?

Any tool for automatically generating unit tests for Java code?

更新:
主要预期用途是快速生成将要重构的遗留代码的单元测试。自动生成后无需自动使测试与代码保持同步。

UPDATE:Primary intended use is to quickly generate unit tests for legacy code that is going to be refactored. No need to automatically keep the tests in sync with the code after automatic generation.

这里几乎提出了同样的问题,但是答案是针对.NET而不是Java(是接受的答案) :

Almost same question was asked here, but the answer was for .NET instead of Java (Pex was the accepted answer):

推荐答案


  • 有一个JUnit测试生成模块听起来像它会做你想做的。请参阅。

  • [CoView]是价格合理的产品,每位用户每年仅9.99美元,不幸的是它不再存在。

  • 值得研究。

    • CodePro Analytix has a JUnit test generation module that sounds like it will do what you want. See the User Guide.
    • [CoView] was a reasonably priced product, at only $9.99 per user per year, unfortunately it doesn’t exist anymore.
    • AgitarOne Automated JUnit Generation is worth investigating.
    • 所有三种产品在购买之前都有试用选项,因此您可以使用它们将生成的代码与应用程序的一小部分进行比较。

      All three products have a try before you buy option, so you could use them to compare the generated code against a small subset of your application.

      这篇关于自动生成Java的单元测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

      1403页,肝出来的..

09-06 23:03