ویرگول
ورودثبت نام
امید آرام - توسعه دهنده نرم افزار
امید آرام - توسعه دهنده نرم افزار
خواندن ۱ دقیقه·۲ ماه پیش

انواع تست نرم افزار - قسمت ۴ (Unit testing)

قسمت های قبلی:

Unit testing

Let’s start with the most basic type of software testing – unit testing. Sometimes called component testing, unit testing focuses on verifying the individual units or components of a given software system.

It involves testing small, independent units of code to ensure that they work as intended. Unit testing is typically performed manually by developers, using white-box testing techniques that delve into the internal logic and structure of the code itself. By testing individual units in isolation, developers can identify defects early in the development cycle and promote code reusability and maintainability. Unit testing can be seen as the foundation for building robust and reliable software systems.

Common unit tests may include:

  • Data flow testing,
  • Branch coverage testing,
  • Control flow testing,
  • Statement Coverage Testing,

Example of a unit test:

A developer has created a password input text field with a validation value that must contain at least 8 characters and special characters. He then sets up a unit test to verify this one specific text field by entering a password that has fewer characters, no special characters, an empty field, etc.

قسمت های بعدی:

لینک مطلب اصلی:
https://stratoflow.com/types-of-software-testing

software testingunit testdeveloperclean codefunctional testing
شاید از این پست‌ها خوشتان بیاید