Unit Testing

Advertisements


What is Unit Testing?

Unit testing, a testing technique using which individual modules are tested to determine if there are any issues by the developer himself. It is concerned with functional correctness of the standalone modules.

The main aim is to isolate each unit of the system to identify, analyze and fix the defects.

Unit Testing - Advantages:

  • Reduces Defects in the Newly developed features or reduces bugs when changing the existing functionality.

  • Reduces Cost of Testing as defects are captured in very early phase.

  • Improves design and allows better refactoring of code.

  • Unit Tests, when integrated with build gives the quality of the build as well.

Unit Testing LifeCyle:

Unit testing in Test Life Cycle

Unit Testing Techniques:

  • Black Box Testing - Using which the user interface, input and output are tested.

  • White Box Testing - used to test each one of those functions behaviour is tested.

  • Gray Box Testing - Used to execute tests, risks and assessment methods.



Advertisements
Advertisements