Citizendia
Your Ad Here


Various code-driven testing frameworks have come to be known collectively as xUnit. Software testing is an Empirical investigation conducted to provide stakeholders with information about the quality of the product or service under test, with respect to the Such frameworks are based on a design by Kent Beck, originally implemented for Smalltalk as SUnit, but are now available for many programming languages and development platforms. Kent Beck is the creator of Extreme Programming Beck has pioneered software design patterns, the rediscovery of Test-driven development, as well as Smalltalk is an object-oriented, dynamically typed, reflective programming language. SUnit is a Unit testing framework for Smalltalk. It is the original source of the XUnit design

Contents

xUnit Design

The overall design of xUnit frameworks depends on several components.

Test Fixtures

A test fixture is the set of preconditions or state needed for a test to run. In Logic a precondition is a condition that has to be met before a main argument can have any value Also known as a test context.

Test Suites

A test suite is a set of tests that all share the same fixture.

Test Execution

The execution of an individual unit test proceeds as follows:

setup();
. . . 
/* Body of test */
. . . 
teardown();

The setup() and teardown() methods serve to initialize and clean up test fixtures.

Assertions

An assertion is a function or macro that verifies the behavior of the unit under test. Failure of an assertion typically throws an exception, aborting the execution of the current test.

A partial list of xUnit frameworks

External links

This page is a list of tables of code-driven Unit testing frameworks for various Programming languages Some of these are based on XUnit, but not all of them are
© 2009 citizendia.org; parts available under the terms of GNU Free Documentation License, from http://en.wikipedia.org
Dapyx Software network: MP3 Explorer | Ebook Manager | Zenithic