liveBook · Manning

Test

As explained in Think Like a CTO

Testing is the systematic evaluation of software behavior or documented procedures by execution or review to reveal gaps and verify intended results.

Testing checks whether software behaves as expected. Because anticipating every possible action is difficult—and developers may overlook problems in their own work—independent testing can help assess fixes and features as an end user would encounter them. Testing may be manual or automated. section 9.4

Automated tests run without direct human interaction and can be part of a build-and-release pipeline. Creating and maintaining them takes work: tests may need prepared scenarios and data, and one test can depend on another action to set up its starting conditions. Test counts alone do not establish quality. Code coverage indicates how much code tests run, but teams should focus coverage on crucial modules; complete coverage is nearly impossible. section 9.4.2 section 9.9

Test quality over quantity

A test suite with 10,000 tests could miss whether a car’s engine turns on, while a single test that checks the engine may catch that essential failure. Likewise, a test that deletes a person’s record must first create the record it will delete. section 9.4.2

How Think Like a CTO covers it

How deep it goes
Explains independent testing, automated-test setup, and coverage priorities, while noting that exhaustive testing is impractical.
Examples
Uses a car-engine test to distinguish test quality from quantity and a record-deletion test to illustrate setup dependencies.
What you can do after
Evaluate test quality by considering crucial code coverage rather than relying on test counts alone.
How it connects
Connects quality assurance with automated testing, code coverage, and build-and-release pipelines.

Also explained in

Compare how 53 books explain test →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Think Like a CTO. The section links point to the parts of the book it draws on.