unit tests

Small function checks

Unit tests are automated checks that verify whether small, isolated pieces of code work as intended.

Each test targets a specific function or component, confirming it produces expected outputs for given inputs.

Developers run unit tests frequently during development to catch bugs early: The build failed because three unit tests broke after refactoring.

The practice is fundamental to test-driven development.

Related

verifications · codebase · software development · functionality · quality assurance · mocking · error handling · linting · modularity · edge cases · refactoring · code smell · peer reviews · isolate · technical debt · Selenium · encapsulation · pull requests

Categories
Opposites
testing scope

unit testssmoke tests

Minimal viability verification

stress tests

testing approach

unit testsQA testing

Systematic defect detection process

beta testing · dogfooding

development timing

unit testsdebugging

Error removal from programs

hotfixes · post-mortem analysis · firefighting

Family

unit, test, units, unite, united, uniting, unity, unitary, unification

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