Class testing is testing that ensures a class and its instances (objects) perform as defined.
When designing a society of classes, an excellent goal is to structure classes so they can be tested with a minimum of fuss. After all, a class that requires compiling the application, starting the application, logging into the application, navigating to a particular point in the application ...will likely not get rigorously tested.
In computer programming, unit testing is a software testing method by which individual units of source code, sets of one or more computer program modules together with associated control data, usage procedures, and operating procedures, are tested to determine whether they are fit for use.
Intuitively, one can view a unit as the smallest testable part of an application. In procedural programming, a unit could be an entire module, but it is more commonly an individual function or procedure.
In object-oriented programming, a unit is often an entire interface, such as a class, but could be an individual method.Unit tests are short code fragments created by programmers or occasionally by white box testers during the development process. It forms the basis for component testing.
Unit tests are typically written and run by software developers to ensure that code meets its design and behaves as intended.
Visit My Blog: http://vinay-kumar-saini.blogspot.in/
Visit My Blog: http://vinay-kumar-saini.blogspot.in/
No comments:
Post a Comment