|
JUnit is a unit testing framework for the Java programming language. Created by Kent Beck and Erich Gamma, JUnit is one of, and arguably the most successful of, the xUnit family of frameworks that originated with Kent Beck's SUnit. JUnit has spawned its own ecosystem of JUnit extensions. "junit" is also used as a synonym for unit tests as in, "Did you run the junits [pronounced jay-you-nits] before you checked in?" In Egyptian mythology, Junit was a minor goddess, whose name means (female one who) was brought. ...
âSoftware developmentâ redirects here. ...
Kent Beck is the creator of Extreme Programming and is one of the founders of the Agile Manifesto. ...
Erich Gamma is a co-author of the influential computer science textbook, Design Patterns. ...
David Saff is a computer scientist. ...
Code complete redirects here. ...
is the 199th day of the year (200th in leap years) in the Gregorian calendar. ...
Year 2007 (MMVII) is the current year, a common year starting on Monday of the Gregorian calendar and the AD/CE era in the 21st century. ...
An operating system (OS) is the software that manages the sharing of the resources of a computer and provides programmers with an interface used to access those resources. ...
A cross-platform (or platform independent) programming language, software application or hardware device works on more than one system platform (e. ...
Computer software can be organized into categories based on common function, type, or field of use. ...
A software license is a legal agreement which may take the form of a proprietary or gratuitous license as well as a memorandum of contract between a producer and a user of computer software. ...
The CPL (Common Public License) is a free software / open-source software license published by IBM. Its license terms have been approved by the Open Source Initiative and Free Software Foundation. ...
A website (alternatively, Web site or web site) is a collection of Web pages, images, videos or other digital assets that is hosted on one or several Web server(s), usually accessible via the Internet, cell phone or a LAN. A Web page is a document, typically written in HTML...
In computer programming, a unit test is a procedure used to validate that a particular module of source code is working properly. ...
âJava languageâ redirects here. ...
Kent Beck is the creator of Extreme Programming and is one of the founders of the Agile Manifesto. ...
Erich Gamma is a co-author of the influential computer science textbook, Design Patterns. ...
Various code-driven testing frameworks have come to be known collectively as xUnit. ...
SUnit is a unit test framework for Smalltalk. ...
Experience gained with JUnit has been important in the development of test-driven development, and as a result, some knowledge of JUnit is often presumed in discussions of test-driven development, for example in the book Test-Driven Development: By Example, ISBN 0-321-14653-0 by Kent Beck. Test-Driven Development (TDD) is a software development technique consisting of short iterations where new test cases covering the desired improvement or new functionality are written first, then the production code necessary to pass the tests is implemented, and finally the software is refactored to accommodate the changes. ...
JUnit has been ported to other languages, including PHP (PHPUnit), C# (NUnit), Python (PyUnit), Fortran (fUnit), Perl (Test::Class and Test::Unit) and C++ (CPPUnit). This family of unit testing frameworks is referred to collectively as xUnit. TestNG has many of the same goals as JUnit. For other uses, see PHP (disambiguation). ...
The title given to this article is incorrect due to technical limitations. ...
NUnit is an open source unit testing framework for Microsoft . ...
Python is a high-level programming language first released by Guido van Rossum in 1991. ...
PyUnit is the standard unit testing framework module for Python, described as a Python version of JUnit. ...
Fortran (also FORTRAN) is a statically typed, compiled, programming language originally developed in the 1950s and still heavily used for scientific computing and numerical computation half a century later. ...
fUnit is a unit testing framework for Fortran, in the flavor of other xUnit testing framerworks. ...
Wikibooks has a book on the topic of Perl Programming Perl is a dynamic programming language created by Larry Wall and first released in 1987. ...
C++ (pronounced see plus plus, IPA: ) is a general-purpose programming language with high-level and low-level capabilities. ...
CPPUnit is a unit testing framework module for C++, described as a C++ port of JUnit. ...
Various code-driven testing frameworks have come to be known collectively as xUnit. ...
TestNG is a testing framework for the Java programming language inspired from JUnit and NUnit but introducing some new functionalities that make it more powerful and easier to use, such as: JDK 5 Annotations (JDK 1. ...
And more recently, owing to the development of rich client frameworks such as AJAX, a port of JUnit has been developed for JavaScript (JSUnit) http://www.jsunit.net/. "Hello world" example in JUnit 3.8 and earlier: public class HelloWorld extends TestCase { public void testMultiplication() { // Testing if 3*2=6: assertEquals ("Multiplication", 6, 3*2); } } (compare with the similar example for Mauve.) Mauve is a project to provide a free test suite for the Java⢠class libraries. ...
The method testMultiplication will be discovered automatically by reflection. In computer science, reflection is the process by which a computer program of the appropriate type can be modified in the process of being executed, in a manner that depends on abstract features of its code and its runtime behavior. ...
"Hello world" example in JUnit 4.0: public class HelloWorld { @Test public void testMultiplication() { // Testing if 3*2=6: assertEquals ("Multiplication", 6, 3*2); } } The method testMultiplication will be discovered automatically by its Test Annotation (a feature of Java 5). In computer programming, a Java annotation is a way of adding metadata to Java source code that can also be available to the programmer at run-time. ...
âJava languageâ redirects here. ...
External links
References - "JUnit in Action". ISBN 1-930110-99-5.
- Kent Beck. "JUnit Pocket Guide". O'Reilly, 2004. ISBN 0-596-00743-4.
- J. B. Rainsberger. "JUnit Recipes". Manning, 2004. ISBN 1932394230.
|