xUnit Family Members
This (incomplete) list of members of the xUnit family of test automation frameworks is included here to illustrate the diversity of the family and the extent to which automated unit testing is supported in various programming languages. This appendix also includes comments about specific capabilities of some members of the family. A much more complete and up-to-date list can be found at http://xprogramming.com/software.htm .
ABAP Object Unit
The member of the xUnit family for SAP's ABAP programming language. ABAP Object Unit is more or less a direct port of JUnit to ABAP except for the fact that it cannot catch exceptions encountered within the system under test (SUT).
ABAP Object Unit is available for download at http://www.abapunittests.com , along with articles about unit testing in ABAP. See ABAP Unit for versions of SAP/ABAP starting with 6.40.
ABAP Unit
The member of the xUnit family for versions of SAP's ABAP programming language starting with Basis version 6.40 (NetWeaver 2004s). The most notable aspect of ABAP Unit is its special support that allows tests to be stripped from the code as the code is "transported" from the acceptance test environment to the production environment.
ABAP Unit is available directly from SAP AG as part of the NetWeaver 2004s development tools. More information on unit testing in ABAP is available in the SAP documentation and from http://www.abapunittests.com . See ABAP Object Unit for versions of SAP/ABAP prior to Basis version 6.40 (NetWeaver 2004s).
CppUnit
The member of the xUnit family for the C++ programming language. It is available for download from http://cppunit.sourceforge.net . Another option for some .NET programmers is NUnit.
CsUnit
The member of the xUnit family for the C# programming language. It is available from http://www.csunit.org . Another option for .NET programmers is NUnit.
CUnit
The member of the xUnit family for the C programming language. Details can be found at http://cunit.sourceforge.net/doc/index.html .
DbUnit
An extension of the JUnit framework intended to simplify testing of databases. It can be downloaded from http://www.dbunit.org/ .
IeUnit
The member of the xUnit family for testing Web pages rendered in Microsoft's Internet Explorer browser using JavaScript and DHTML. It can be downloaded from http://ieunit.sourceforge.net/ .
JBehave
One of the first of a new generation of xUnit members designed to make tests written as part of TDD more useful Tests as Specification . The main difference between JBehave and more traditional members of the xUnit family is that JBehave eschews the "test" terminology and replaces it with terms more appropriate for specification—that is, "fixture" becomes "context," "assert" becomes "should," and so on. JBehave is available at http://jbehave.codehaus.org . RSpec is the Ruby equivalent.
JUnit
The member of the xUnit family for the Java programming language. JUnit was rewritten in late 2005 to take advantage of the annotations introduced in Java 1.5. It can be downloaded from http://www.junit.org .
MbUnit
The xUnit family member for the C# programming language. MbUnit's main claim to fame is its direct support for Parameterized Tests . It is available from http://www.nunit.orgmbunit.com . Other options for .NET programmers include NUnit, CsUnit, and MSTest.
MSTest
Microsoft's member of xUnit family does not seem to have a formal name other than its namespace Microsoft.VisualStudio.TestTools.UnitTesting but most people refer to it as MSTest . Technically, it is just the name of the Command-Line Test Runner mstest.exe . MSTest's main claim to fame is that it ships with Visual Studio 2005 Team System. It does not appear to be available in the less expensive versions of Visual Studio or for free download. MSTest includes a number of innovative features, such as direct support for Data-Driven Tests . Information is available on MSDN at http://msdn.microsoft.com/en-us/library/ms182516.aspx . Other (and cheaper) options for .NET programmers include NUnit, CsUnit, and MbUnit.
NUnit
The member of the xUnit family for the .NET programming languages. It is available from http://www.nunit.org . Other options for C# programmers include CsUnit, MbUnit, and MSTest.
PHPUnit
The member of the xUnit family for the PHP programming language. According to Sebastian Bergmann, " PHPUnit is a complete port of JUnit 3.8. On top of this original feature set it adds out-of-the-box support for Mock Objects, Code Coverage, Agile Documentation, and Incomplete and Skipped Tests." More information about PHPUnit can be found at http://www.phpunit.de , including the free book on PHPUnit .
PyUnit
The member of the xUnit family written to support Python programmers. It is a full port of JUnit. More information can be found at http://pyunit.sourceforge.net/ .
RSpec
One of the first of a new generation of xUnit members designed to make tests written as part of TDD more useful Tests as Specification . The main difference between RSpec and more traditional members of the xUnit family is that RSpec eschews the "test" terminology and replaces it with terms more appropriate for specification—for example, "fixture" becomes "context," Test Methods becomes "specify," "assert" becomes "should," and so on. RSpec is available at http://rspec.rubyforge.org . JBehave is the Java equivalent.
runit
One member of the xUnit family for the Ruby programming language. It is a wrapper on Test::Unit that adds additional functionality. It is available at www.rubypeople.org .
SUnit
The self-proclaimed "mother of all unit-testing frameworks." SUnit is the member of the xUnit family for the Smalltalk programming language. It is available for download at http://sunit.sourceforge.net .
Test::Unit
The member of the xUnit family for the Ruby programming language. It is available for download from http://www.rubypeople.org and comes as part of the "Ruby Development Tools" feature for the Eclipse IDE framework.
TestNG
A member of the xUnit family for Java that behaves a bit differently from JUnit. TestNG specifically supports dependencies between tests and the sharing of the test fixture between Test Methods . More information is available at http://testng.org .
utPLSQL
The member of the xUnit family for the PLSQL database programming language. You can get more information and download the source for this tool at http://utplsql.sourceforge.net/ . A plug-in that integrates utPLSQL into the Oracle toolset is available at http://www.ounit.com .
VB Lite Unit
Another member of the xUnit family written to support Visual Basic and VBA (Visual Basic for Applications). "VB Lite Unit is a reliable, lightweight unit-testing tool for Visual Basic and VBA written by Steve Jorgensen. The driving principle behind VB Lite Unit was to create the simplest, most reliable unit-testing tool possible that would still do everything that usually matters for doing test-driven development in VB 6 or VBA. Things that don't work or don't work reliably in VB and VBA are avoided, such as attempts at introspection to identify the test methods." Another option for VB and VBA programmers is VbUnit. For VB.NET programmers, options include NUnit, CsUnit, and MbUnit.
VbUnit
The member of the xUnit family written to support Visual Basic 6.0. It was the first member of the xUnit family to support Suite Fixture Setup and introduced the concept of calling a Testcase Class "test fixture."
One major quirk of VbUnit is that when an Assertion Method fails the test, it writes the messages into the failure log immediately rather than just raising an error that is then caught by the Test Runner . The practical implication of this behavior is that it becomes difficult to test Custom Assertions because the messages in the logs are not prevented by the normal Expected Exception Test construct. The work-around is to run the Custom Assertion Tests inside an "Encapsulated Test Runner."
Another quirk is that VbUnit is one of the few members of the xUnit family that is not free (as in beer). It is available from http://www.vbunit.org . There used to be a free version available—who knows, it may reappear some day. Another option for VB and VBA programmers is VB Lite Unit. For VB.NET programmers, options include NUnit, CsUnit, and MbUnit.
xUnit
The generic name for any Test Automation Framework for unit testing that is patterned on JUnit or SUnit. The xUnit test framework for most languages can be found at http://xprogramming.com or http://en.wikipedia.org/wiki/XUnit . Another place to look for both unit test and customer test tools is http://www.opensourcetesting.org .