unit test

Code fragment validation

A unit test is a piece of code that verifies whether a small, isolated component of software—typically a single function or method—behaves as expected.

Unit tests run automatically and quickly, catching bugs early in development.

The practice of writing them is unit testing: We need better unit test coverage before shipping.

execution

assertion

Confident statement of fact

  • passMove beyond or decline
  • failBe unsuccessful
  • errorFault in communication

coverage · fixture · setup · teardown · mock · stub · regression · results · expected · actual

debugging

diagnose

Determine a disease's nature

regression · breakpoint · trace · log · isolate · reproduce · root cause · stack trace · failure · edge case

quality

reliability

Consistent, predictable performance

confidence · refactoring · safety net · documentation · specification · verification · validation · assurance · correctness · stability

frameworks

tap

Valve controlling liquid flow

methodology

specification

Detailed technical requirement

  • behaviorManner of conducting oneself
  • agileLimber and quick-moving
  • scrumContested pack restart
Categories
Opposites
scope of testing

unit testsmoke test

Preliminary functionality verification

load test · performance test · stress test

testing perspective

unit testbeta test

Prerelease software evaluation

testing methodology

unit testbeta testing

Pre-release quality evaluation

Family

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

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