Skip to content
TaeyoungKim.dev

Unit, Regression, Load, and Stress Testing: What Each Test Checks

CSWritten 3 min readTaeyoungKim
LinkedInX

Unit tests and regression tests can both find defects, but they answer different questions. Load tests examine behavior under an expected workload; stress tests push beyond normal limits. Before reading pass and fail counts, identify what the test was designed to verify.

Key terms

Unit tests examine small units; regression tests check whether a change broke existing behavior. Load and stress tests examine different workload conditions.

TermMeaning
Test caseA specified set of inputs, conditions, steps, and expected results used to check a behavior. Recorded cases also show what was covered and provide evidence of execution.
unit testA test of a small unit of software, such as a function or module, generally in isolation from unrelated components.
white-box testingTesting informed by the implementation's internal structure or paths. It does not by itself guarantee that every possible path is tested.
black box testingTesting observable behavior against requirements without relying on knowledge of internal implementation.

Terms to distinguish

TermMeaning
Pareto principleThe heuristic that a small share of causes may account for a large share of effects, often illustrated as 80/20. The exact ratio is not a law or a guaranteed defect distribution.
Pesticide ParadoxThe observation that running the same tests repeatedly may stop revealing new defects; vary and update tests as the software changes.
walkthroughA review in which the author guides other people through a work product to gather feedback and find issues.
inspectionA structured review of a work product against defined criteria to find defects and improvements.

Terms in code

TermMeaning
regression testA test that checks whether previously working behavior still works after a change or fix.
test oracleA source or method for deciding the expected result, or whether an observed result is correct.
Load testingMeasures application behavior under an intended or representative workload over a defined period.
Stress testingExamines behavior when workload or another resource demand exceeds normal limits.

Reading a technical document

Both load and stress testing apply demand, but one checks expected operating conditions while the other probes limits and failure behavior.

First find the test target, then the conditions and expected result. A successful unit test cannot establish that an entire service handles production traffic; a stress test needs a clear definition of what failure and recovery should look like.

Key takeaways

Ask what is tested, under which conditions, and against which expected result.

  • Test case — Describes inputs, conditions, and expected behavior, and records the scope tested.
  • walkthrough — An author-guided review of a work product.
  • Stress testing — Probes behavior beyond normal workload or resource limits.

Author

TaeyoungKim

Connecting technical foundations with implementation, verification, and production decisions.

#developer terminology#software testing#quality#vocabulary series 9

Read next