Sunday, 3 March 2013

Unit Testing - Definition, Execution, Disadvantages

Unit Testing:

Click on the image for zoom view

A unit is smallest testable piece of software :

  • Can be compiled, linked, loaded
  • E.g functions/procedures, classes, interfaces
  • Normally done by programmer
  • Test cases written after coding

This type of testing is performed by the developers before the setup is handed over to the testing team to formally execute the test cases.
  • Unit testing is performed by the respective developers on the individual units of source code assigned areas.
  • The developers use test data that is separate from the test data of the quality assurance team.
  • The goal of unit testing is to isolate each part of the program and show that individual parts are correct in terms of requirements and functionality.

Unit Testing Execution:

Click on the image for zoom view

Disadvantages / Limitations of Unit Testing:


  • Testing cannot catch each and every bug in an application.
  • It is impossible to evaluate every execution path in every software application. The same is the case with unit testing.
  • There is a limit to the number of scenarios and test data that the developer can use to verify the source code. So after he has exhausted all options there is no choice but to stop unit testing and merge the code segment with other units.


  1. hope it is the first and foremost level of software testing phase.

  2. i'm a fresher and planned to start my career in software testing. is that GOOD? guide me pls.

  3. @Jai Yup. You can find many mistakes on other's work. Will be interesting :)

  4. Pretty article! I found some useful information in your blog, it was awesome to read, thanks for sharing this great content to my vision, keep sharing. Need to learn
    Software Testing Services
    Software Qa Services

  5. I must thank you for the efforts you have put in penning this site. I am hoping to check out the same high-grade content by you later on as well. Keep up the good work
    software testing services
    software testing companies
    Security testing services
    Test automation services

  6. Nice Post.. really helpful to clear my small concepts. thanks Keep doing more, waiting to read your next blog

    Selenium Training in Chennai | Certification | Online Courses

    selenium training in chennai

    selenium training in chennai

    selenium online training in chennai

    selenium training in bangalore

    selenium training in hyderabad

    selenium training in coimbatore

    selenium online training

  7. It's great to be here and to learn more about software testing. I'm a software tester in a leading
    Software testing companies. This a great knowledge for all beginners. Appreciate your effort to write about this.

  8. Thanks for sharing such a great blog... I am impressed with you taking time to post a nice info.
    software testing training in chennai

  9. Thanks for sharing this post and the efforts you have made in writing this. If you have more info about Software testing companies, please share. Good to see such nice articulated post.

  10. Thanks for sharing this informative content , Great work
    To crack scrum master interview : Agile coach interview questions


Share your feedback and queries here. Your feedback are more valuable to us!