Skip to content
BENIBIX Learn

Software Testing

Development🧪 Testing & QualityTest Basics

Also known as Testing, Code Testing, QA Testing

Checking that code does what it should, before real people use it.

Think of it like

Think of it like tasting soup before you serve it. You check it is right first.

Example

Lucy changes how her shop adds up prices. Her 200 tests run in 4 seconds, and one fails: the discount is now wrong.

Why it matters

A bug found by a test costs minutes. The same bug found by a customer costs money and trust.

Definition

Software testing is checking that code does what it should before people use it. A test runs part of the program with a known input. Then it checks the output against the answer you expect. Most tests are small programs that run in seconds, again and again. When a test fails, you know something broke and roughly where.

Common mistake

Testing only the happy path. Most bugs hide in the odd cases, like an empty cart or a negative price.

Key takeaways

  1. 1
    Known input, known answer. Then compare.
  2. 2
    Run it often. Seconds, not hours.
  3. 3
    A fail points the way. To what broke.