liveBook · Manning

Sanity check

A sanity check is a basic validation that checks whether a result, value, system, or process is plausible and satisfies expected conditions.

How 2 Manning books explain it

The Well-Grounded Data Analyst

A sanity check is a basic validation intended to detect obvious inconsistencies or implausible results in data or analysis.

How it is used
Validates combined analytical data before cleaning, aggregation, metric calculation, or prototype development.
How deep it goes
Works through executable checks for missingness, ranges, completeness, distributions, outliers, and consistency, while deferring uncertain causes to investigation.
Examples
Uses product-event coverage and labels, property-sale prices and addresses, and city extraction from customer addresses.
What you can do after
Diagnose/debug with it by finding questionable records, investigating context, and making explicit cleaning or correction decisions.

Read how The Well-Grounded Data Analyst explains sanity check →

Effective Behavior-Driven Development

A pattern that verifies setup preconditions immediately, before later steps depend on them.

How it is used
Uses immediate verification to ensure context setup succeeded before dependent steps proceed.
How deep it goes
Explains when checks are needed, gives failure cases, and favors generic checks, with custom checks when necessary.
Examples
Uses login-page loading, REST API status codes, asynchronous completion, API error codes, and CSV records as examples.
What you can do after
Apply explicit checks to setup steps whose success or completion is not otherwise confirmed.

Read how Effective Behavior-Driven Development explains sanity check →

Also covered in

What to know first

Related concepts

Questions about sanity check

What is sanity check?

A sanity check is a basic validation that checks whether a result, value, system, or process is plausible and satisfies expected conditions.

Which Manning books explain sanity check?

The Well-Grounded Data Analyst and Effective Behavior-Driven Development.

What should I know before learning sanity check?

Manning books that teach sanity check usually introduce debugging, prompt and classifier first.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.