Types of Tests

for RuBoard

There are several different types of tests. In my work, four have proved to be the most valuable : unit tests, functional tests, regression tests, and integration tests. Let's discuss each type separately.

Unit Tests

Unit tests are written by programmers to ensure that programs work as they're supposed to. What defines what a program is supposed to do? The specifications and design laid out earlier. Unit tests are often built right into the software, with conditional defines either including or excluding them from the compiled executable. Unit tests affirm, module by module, that code correctly implements the functionality the programmer thinks it's supposed to have. Unit tests help identify software bugs .

Functional Tests

Functional tests are specified by users to ensure that the system as a whole works the way they think it should. Functional tests are more holistic and all encompassing. They are also more final than unit tests. A system can be devoid of bugs and still not pass functional tests. The final word on whether a system performs as it's supposed to rests with its users.

Regression Tests

Regression tests are tests that compare the results from multiple test runs with one another, usually using automated tools. A regression test ensures that the results from tests today match those from yesterday .

Integration Tests

Integration tests ensure that the various modules that make up a system play well together. They ensure that changes made in one unit don't break code in another at a distance. Because the XP methodology encourages early and constant integration, the entire development process is itself a type of integration test. Other methodologies relegate integration testing to regular intervals during the development process (say, weekly or monthly, for example), but are careful to isolate problematic modules so that they do not produce bad buildsin other words, builds that cannot be used or tested meaningfully because of fatal flaws in a specific module.

for RuBoard


The Guru[ap]s Guide to SQL Server[tm] Stored Procedures, XML, and HTML
The Guru[ap]s Guide to SQL Server[tm] Stored Procedures, XML, and HTML
ISBN: 201700468
EAN: N/A
Year: 2005
Pages: 223

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net