The whole, before the parts

Software testing compares observed behavior with expectations to find problems and support decisions. Tests provide evidence within the cases and conditions they cover; passing tests do not prove that a system has no defects. Citation needed

For example, for a checkout feature, expected behavior includes computing a total and passing the right amount to the payment component. A test needs an expected result before it can reveal a mismatch. Citation needed

The concepts move from checking a small part, to checking connected parts, to preserving a check when the software changes. Together they build evidence about the feature while leaving the limits of that evidence visible. Citation needed

Terminology and core concepts

  1. Unit test

    A unit test checks a small part of a program in isolation or with controlled dependencies. Citation needed

    What does a unit test keep relatively narrow?
    the behavior under examination Citation needed
  2. Integration test

    An integration test checks whether components work together. Citation needed

    Why can individually correct parts fail together?
    their assumptions or interfaces may disagree Citation needed
  3. Regression test

    A regression test checks that behavior still works after a change. Citation needed

    What does a test for a previously fixed bug help prevent?
    the same failure returning unnoticed Citation needed

Sources and further reading

Core notes reviewed .

Learning path

Continue through Software Engineering in order, using the concepts above to connect this topic to the next.