对于java你可以使用junit
JUnit
JUnit 是一个用于编写可重复测试的简单框架。它是用于单元测试框架的 xUnit 架构的一个实例。
* Getting Started
* Documentation
* JUnit related sites/projects
* Mailing Lists
* Get Involved
开始
要开始使用单元测试和 JUnit,请阅读文章:JUnit Cookbook。
本文介绍了使用 JUnit 4 编写的基本测试。
您可以在 org.junit.samples 包中找到其他示例:
* SimpleTest.java - some simple test cases
* VectorTest.java - test cases for java.util.Vector
JUnit 4.x 仅附带一个文本 TestRunner。对于图形反馈,大多数主要 IDE 都支持 JUnit 4。如果需要,您可以在每个测试类中添加以下方法,在 JUnit 3 环境中运行 JUnit 4 测试:
公共静态测试套件(){
返回新的 JUnit4TestAdapter(ThisClass.class);
}
文档
JUnit Cookbook
A cookbook for implementing tests with JUnit.
Javadoc
API documentation generated with javadoc.
Frequently asked questions
Some frequently asked questions about using JUnit.
Release notes
Latest JUnit release notes
License
The terms of the common public license used for JUnit.
以下文档仍描述 JUnit 3.8。
The JUnit 3.8 version of this homepage
Test Infected - Programmers Love Writing Tests
An article demonstrating the development process with JUnit.
JUnit - A cooks tour
JUnit 相关项目/站点
* junit.org - a site for software developers using JUnit. It provides instructions for how to integrate JUnit with development tools like JBuilder and VisualAge/Java. As well as articles about and extensions to JUnit.
* XProgramming.com - various implementations of the xUnit testing framework architecture.
邮件列表
共有三个junit邮件列表:
* JUnit announce: junit-announce@lists.sourceforge.net Archives/Subscribe/Unsubscribe
* JUnit users list: junit@yahoogroups.com Archives/Subscribe/Unsubscribe
* JUnit developer list: junit-devel@lists.sourceforge.net Archives/Subscribe/Unsubscribe
参与进来
JUnit 庆祝程序员测试他们自己的软件。因此,与没有的相比,包含 JUnit 测试用例的错误、补丁和功能请求更有可能得到解决。
JUnit 源代码现在托管在 GitHub 上。