unit testing

Isolated code checks

Unit testing is a software development practice where individual components of code are tested in isolation to verify they work correctly.

Each test targets a small, specific piece of functionality—a function, method, or class—rather than the system as a whole.

The unit tests caught the bug before it reached production.

Unit tests run quickly and help developers refactor with confidence.

methodology

assertion

Confident statement of fact

  • mockScornful imitation or fake
  • stubRetained portion after detachment
  • fixtureAttached building component

setup · teardown · test suite · isolation · parameterized · specification · scenario · coverage · validation · verification

quality

reliability

Consistent, predictable performance

verification · validation · robustness · correctness

debugging

failure

Lack of success

log · diagnose · troubleshoot · reproduce · isolate · root cause · regression

tooling

framework

Underlying support system

Opposites
scope of testing

unit testingsmoke testing

Preliminary functionality verification

load testing · stress testing · beta testing

testing approach

unit testingQA testing

Systematic defect detection process

user testing · beta testing

Family

unit, tested, testing, tester, test case, test cases

Familiarity
Top 500,000
Profile
Used worldwide · Timeless · Rated G