What is Unit Testing

One of the keys to creating quality software is testing it. There are many ways to test the software. Unit testing is considered an essential part of the software development process.

When solving a problem, it's always easier to split the problem up into smaller parts and solve each of the sub problems first.

Unit testing means we test each unit of code independently.

The key point is following good object oriented design principles makes your code unit testable at the same time.

We wanna get the project coded as fast as possible, and get it out the door so we can impress our boss, or customer, or just move on the next thing. With this mindset, proper testing of the code is often overlooked.

In software development, time is money and going over time means going over budget.

The purpose of Unit Testing is to test early and often.

  1. We test the code at the same time when we write it.
  2. So, we can be confident that every unit is coded correctly before we move on to the next code.
  3. It greatly reduces our time to find the bugs than we do testing at the end.

results matching ""

    No results matching ""