Open source data quality for Microsoft Purview teams

Microsoft Purview governs your data. TestGen writes the tests.

Purview data quality rules are configured one at a time. TestGen generates them. It profiles every column on SQL Server, Azure SQL, Synapse, and Fabric, and writes thousands of tests. Free and open source.

Start here

Install TestGen

Pick your platform. Free and open source.

$ Select a platform above to get started.
  • 55data profiling column characteristics
  • 32data hygiene detectors
  • 34test types auto-generated from the profile
  • 19business rule and custom SQL test types

Purview and TestGen: two halves of the same job

Purview is the catalog and governance system of record. TestGen is the testing engine. Used together, governance gets a quality signal it can’t produce on its own.

Purview does
Catalog and search, lineage across databases, lakes, Fabric, and Power BI, business glossaries, sensitivity labels, access control, and domain ownership.
TestGen adds
Tests generated from a profile of 55 column characteristics, multi-table checks, and a Pass, Patch, Purge, or Push Back workflow with record-level detail.
Where rules come from
Both profile data and run checks. In Purview each rule is configured by hand; TestGen generates them from the profile.
The arithmetic
In DataKitchen’s benchmark, 20 tables and 1,000 columns came to 2,526 tests. TestGen does it in two steps. By hand, at 30 minutes a test, it is about 1,250 hours. The math.
Where it runs
In your environment, as read-only SQL inside the database. On-prem SQL Server and non-Microsoft platforms too.
Price
Open source is free. Enterprise is $100 per user and $100 per connection a month. See the full comparison.

Rules TestGen generates that you’d otherwise configure in Purview

The same data quality dimensions, with the tests written for you. Each card lists the TestGen checks generated from a profile of your data.

What TestGen adds next to Purview

Everything below is in the open source release. Enterprise adds team access, security, Commercial Pharma tests, and support.

Why teams choose TestGen

  • You Don't Have Time to Write Tests. TestGen Does It Automatically.

    You're buried in customer requests. You have no time to write tests, let alone innovate. TestGen scans your data and generates the tests and anomaly detectors for you. No coding, no massive YAML configuration.

  • A catalog shows you the data. Tests tell you if it’s right.

    TestGen profiles every column, writes the tests, and monitors freshness, volume, and schema, so the assets Purview catalogs come with a quality score.

    See how TestGen works →
  • Runs inside your database

    Tests run as read-only SQL where the data sits. Nothing is copied out, and nothing is written back.

  • Apache 2.0, core engine free

    Every detector, every characteristic, and every test type but the 12 Commercial Pharma types. In the open source.

  • Self-hosted

    Your data never leaves your environment.

  • Bootstrapped since 2013

    Profitable, independent, and not pivoting next quarter.

Open Source with Reasonable Enterprise Pricing

Open source TestGen is free for one user, one project, and one database connection. Enterprise is a flat $100 per month per user and database connection, with unlimited tables and data volume. No per-table tax. A year of enterprise data quality costs roughly one data engineer's monthly salary.

See pricing
Enterprise, per user and database connection$100/mo
Open source: one user, one project, one connectionFree

TestGen versus the competition

Head-to-head comparisons with every major data quality and observability tool. Search for the one you are evaluating.

Trusted by data teams at
  • Bristol Myers Squibb
  • Eisai
  • Catholic Relief Services
  • Progeny Health
  • X4
  • KOA
  • CNH

Questions

Does TestGen replace Microsoft Purview?

No. Purview is the catalog and governance system of record: search, lineage, glossaries, sensitivity labels and access control. TestGen is the testing engine beside it, generating and running the data quality tests.

What is the difference in how rules are created?

Both tools profile data and run checks. In Purview each data quality rule is configured by hand. TestGen generates tests from a profile of 55 column characteristics, so thousands of tests exist before anyone writes a rule.

Does TestGen work with on-prem SQL Server and non-Microsoft databases?

Yes. TestGen runs in your own environment and tests SQL Server, Azure SQL, Synapse, Fabric, Snowflake, Databricks, PostgreSQL and more.

How does the cost compare?

Our comparison page estimates Purview at $60K–$150K a year for 10 users and 1,000 tables. TestGen Enterprise is $12,000 to $36,000 a year at the same size, and the open source edition is free.

Can I use TestGen and Purview on the same data?

Yes. Purview stays the catalog and system of record; TestGen tests the tables it describes and gives each a quality score.

Which data quality dimensions does TestGen score?

Accuracy, completeness, consistency, timeliness, uniqueness and validity. Every check maps to one of them, and scores roll up per table, table group and dimension.

Does TestGen change anything in my database?

No. TestGen runs read-only SELECT queries to profile data, run tests and collect monitor metrics. It never runs INSERT, UPDATE, DELETE, CREATE, ALTER or DROP, and it stores only computed results (statistics, scores and test outcomes) in its own application database.

The DataOps Way to Data Quality and Data Observability cover

Free book

Not ready to try it out now? Read the free book.

The DataOps Way to Data Quality and Data Observability covers why data quality keeps failing and what to do about it: culture, testing strategy, monitoring, and the seven deadly sins of AI-generated pipelines.

  • 620 pages
  • 63 chapters
  • Updated September 2026
  • By Chris Bergh, Chip Bloche, and Gil Benghiat