TEST environment · synthetic content · not indexed

TEST publication. This explainer is published on the TEST site for acceptance. It has not been approved for production.

Technology / Trend

Data Quality Testing in Pipelines

Data quality testing in pipelines means assertions about data that run inside the pipeline, with a stated severity, so that a failure warns or stops before bad data is used.

What it is
Assertions about data that run inside the pipeline, with a stated severity, so that a failure warns or stops before bad data is used.
Why it matters
A check that runs inside the pipeline catches bad data before it reaches a report or a model.
Who should pay attention
Data engineers, analytics engineers, heads of data engineering and data quality leads.
Primary topic Data Engineering Explore topic →

What it is

A test is a statement about the data that can be checked automatically: a column is never empty, a value falls in a range, a total reconciles. Tool documentation describes data tests as assertions about models and other resources.

Where the test runs matters as much as what it checks. UK government guidance defines quality as fitness for purpose, so a check belongs next to the purpose it protects.

Why it matters

Quality is fitness for purpose, so a check belongs next to the purpose it protects. Tests as code are now a standard feature of the common transformation and validation tools.

DII infers adoption from that: the practice is a standard feature of widely used tools. No source it has read measures how many organisations use it.

The problem it addresses

DII editorial view

Quality problems are usually found by the people reading the output, after decisions have been made on it. Checks run afterwards, or by hand, arrive too late. Tests written as code run every time the pipeline runs, at the point where the data is about to be used.

Business and organisational relevance

DII editorial view

The organisational question is what happens when a test fails. Someone has to own each test, and the business has to accept that a pipeline will sometimes stop instead of delivering wrong figures on time.

Practical use cases

  • Stopping a load when a critical field is missing
  • Warning when a volume falls outside its normal range
  • Checking that figures reconcile between a source and a report

Benefits and opportunities

  • Bad data is caught before it reaches a report or a model
  • Expectations about data are written down and versioned with the code

Risks, limitations and dependencies

  • Tests with no owner and no agreed response
  • So many warnings that real failures are missed
  • Testing what is easy to test and not what the data is used for

Prerequisites for adoption

DII editorial view

  • Pipelines under version control, so tests live with the code
  • An owner for each test and an agreed response when it fails
  • Business acceptance that a pipeline will sometimes stop instead of delivering wrong figures on time

Implementation considerations

  • Give every test a severity and an owner. A test nobody is responsible for will be ignored when it fails.
  • Decide in advance what stops the pipeline. Agree which failures halt delivery before the first one happens.
  • Put checks next to the purpose. Test the data where it is about to be used, for the use it is about to have.

The DII Radar assessment

Approved DII Radar assessment

DII assesses Data Quality Testing in Pipelines as High relevance, with direction Stable. Its strategic impact is assessed as High and its enterprise adoption as Scaling. It is one of the ten entries on the current Radar.

DII relevance is our assessment of current significance and momentum, based on evidence, market development and adoption. Direction is the observed trajectory of relevance and adoption. Strategic impact is the potential or current significance to enterprise data capability, and enterprise adoption is the extent of current real-world enterprise adoption; together they set the position on the Radar. The Radar is not a prediction, vendor comparison or performance ranking.

Evidence basis: UK Government Data Quality Framework (2020); dbt data tests documentation; Great Expectations documentation (tool documentation).

See Data Quality Testing in Pipelines on the Radar →

What to consider next

DII editorial view

  • Give every test a severity and an owner
  • Decide in advance which failures stop the pipeline
  • Test what the data is used for, not only what is easy to test

Evidence and references

The sources DII read for this explainer. Each entry gives what the record holds; nothing is added.

  1. The Government Data Quality Framework Government Data Quality Hub (UK Government) Published: 2020-12-03 Read by DII: October 9, 2026 View source for reference 1 (external site)
  2. Add data tests to your DAG (dbt Developer Hub) dbt Labs Published: Not dated; as retrieved on 2026-10-09 Read by DII: October 9, 2026 View source for reference 2 (external site)
  3. GX Core overview (Great Expectations documentation) Great Expectations Published: Not dated; as retrieved on 2026-10-09 Read by DII: October 9, 2026 View source for reference 3 (external site)

Last reviewed: October 10, 2026  ·  Next review proposed for 10 January 2027.

Related articles

Published DII analysis on this subject.

Relevant resources

Templates and tools from the DII Resource Library.

Other entries in the DII catalogue.

← Return to the Radar