diff --git a/README.md b/README.md index ac00bdd9..bbfb1488 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # DataOps TestGen -DataOps TestGen is an open-source data quality tool that profiles your tables, generates data quality tests and data contracts from the profile, and runs them on a schedule inside your database. +DataOps TestGen is an open-source (Apache 2.0) data quality tool that profiles your tables, generates data quality tests from the profile, and monitors freshness, volume, and schema, with a web UI, a REST API, and an MCP server for AI assistants. ![apache 2.0 license Badge](https://img.shields.io/badge/License%20-%20Apache%202.0%20-%20blue) ![PRs Badge](https://img.shields.io/badge/PRs%20-%20Welcome%20-%20green) [![Latest Version](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fhub.docker.com%2Fv2%2Frepositories%2Fdatakitchen%2Fdataops-testgen%2Ftags%2F&query=results%5B0%5D.name&label=latest%20version&color=06A04A)](https://hub.docker.com/r/datakitchen/dataops-testgen) [![Docker Pulls](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fhub.docker.com%2Fv2%2Frepositories%2Fdatakitchen%2Fdataops-testgen%2F&query=pull_count&style=flat&label=docker%20pulls&color=06A04A)](https://hub.docker.com/r/datakitchen/dataops-testgen) [![Documentation](https://img.shields.io/badge/docs-On%20datakitchen.io-06A04A?style=flat)](https://docs.datakitchen.io/testgen/what-is-testgen/) [![Static Badge](https://img.shields.io/badge/Slack-Join%20Discussion-blue?style=flat&logo=slack)](https://data-observability-slack.datakitchen.io/join) -TestGen covers testing and monitoring in one tool: it watches freshness, volume, and schema between test runs. The open-source edition includes the full web UI, not just a library. You also get a REST API and an MCP server, so you can drive TestGen from your pipelines or an AI assistant. It is Apache 2.0 licensed and runs the same core engine and UI as TestGen Enterprise. +Most data teams have tests on the tables somebody had time to write tests for. TestGen starts from the other end. It profiles every column, then writes the tests for you, and you add SQL rules for the business logic a profile can't know. Tests run as SQL inside your database, so your data stays where it is. Install it with two commands (Python 3.9+, 8 GB memory; details in [Quick start](#quick-start)): @@ -13,17 +13,18 @@ curl -o dk-installer.py 'https://raw.githubusercontent.com/DataKitchen/data-obse python3 dk-installer.py tg install ``` -[Interactive Product Tour](https://datakitchen.storylane.io/share/byag8vimd5tn) | [Product page](https://datakitchen.io/products/dataops-testgen/) | [Documentation](https://docs.datakitchen.io/testgen/what-is-testgen/) +[Interactive Product Tour](https://datakitchen.storylane.io/share/byag8vimd5tn) | [Product page](https://datakitchen.io/products/dataops-testgen/) | [Documentation](https://docs.datakitchen.io/testgen/what-is-testgen/) | [Pricing](https://datakitchen.io/pricing/) ## What it does -- Profiles every column in a table group and records type-specific statistics. -- Flags hygiene issues in new data, so you can review a dataset before it reaches production and send problems back to the supplier. -- Generates data quality validation tests from the profile. You can add your own SQL tests too. -- Writes a [data contract](https://docs.datakitchen.io/testgen/test-suites/contracts/) for each table: the schema plus a test behind every term, kept in numbered versions. Contracts import and export as [ODCS](https://github.com/bitol-io/open-data-contract-standard) (Open Data Contract Standard) YAML. -- Runs tests on a schedule, as SQL inside your database. Your data stays where it is. -- Watches each table between test runs with freshness, volume, and schema monitors. -- Gives you one place to manage data quality across datasets, locations, and teams. +- Profiles every column in a table group on 55 characteristics and stores the results for review. See [what data profiling is](https://datakitchen.io/answers/what-is-data-profiling/). +- Runs 32 hygiene detectors on new data, so you can review a dataset before it reaches production and send problems back to the supplier. +- Generates data quality tests from the profile across 34 test types, plus 19 test types you configure for business rules and custom SQL. See [what data testing is](https://datakitchen.io/answers/what-is-data-testing/). +- Watches each table between test runs with freshness, volume, schema, and metric monitors, and learns what normal looks like for each one. +- Writes a [data contract](https://docs.datakitchen.io/testgen/test-suites/contracts/) for each table, with a test behind every term, kept in numbered versions. Contracts import and export as [ODCS](https://github.com/bitol-io/open-data-contract-standard) (Open Data Contract Standard) YAML. +- Scores quality by DAMA dimension or critical data element, and keeps a catalog page per table with its profile, hygiene issues, and test results. +- Runs from Airflow, Dagster, or CI through the [REST API](https://docs.datakitchen.io/testgen/api/), or from an AI assistant through the [MCP server](https://docs.datakitchen.io/testgen/mcp/). +- Sends alerts by email, Slack, Microsoft Teams, or any HTTPS webhook.

DataOps TestGen: hygiene review of new data @@ -35,44 +36,37 @@ python3 dk-installer.py tg install DataOps TestGen: one place to manage data quality

-## How TestGen compares with Great Expectations and Soda +## What it checks -All three are open source and check data where it lives. The main difference is who writes the tests. +Counted at TestGen 5.134.0 (October 2026). Each check links to its documentation from DataKitchen's [Periodic Table of Data Quality](https://datakitchen.io/blog/periodic-table-of-data-quality/). -| | DataOps TestGen | Great Expectations (GX Core) | Soda Core | -|---|---|---|---| -| License | Apache 2.0 | Apache 2.0 | Elastic License 2.0 | -| Who writes the tests | TestGen generates them from a profile of every column; you can add your own SQL tests | You write each expectation in Python | You write each check in SodaCL (YAML) | -| Data profiling | Yes | Yes | Partial | -| Web UI in the open-source edition | Yes | No | No (the UI is Soda Cloud) | -| Freshness, volume, and schema monitoring | Yes | Partial | Partial | -| Data contracts | Generated from the profile; reads and writes ODCS | Partial | Yes, in SodaCL; no ODCS round trip | -| MCP server for AI assistants | Yes | No | No | +| Category | How many | Examples | +|---|---|---| +| [Data profiling](https://docs.datakitchen.io/testgen/data-profiling/) | 55 column characteristics | Types, keys, formats, observed ranges, required and unique columns, recency, row counts | +| [Data hygiene](https://docs.datakitchen.io/testgen/data-profiling/hygiene-issues/) | 32 detectors | Leading Spaces, Non-standard Blank Values, Potential Duplicate Values, Character Column with Mostly Numeric Values, Suggested Data Type | +| [Generated tests](https://docs.datakitchen.io/testgen/generate-tests/) | 34 test types | Percent Missing, Unique Values, Pattern Match, Email Format, Minimum Value, Recency, Average Shift, Outliers Above | +| [Configured tests](https://docs.datakitchen.io/testgen/generate-tests/test-types/) | 19 test types | Custom Condition, Custom Test (SQL), SQL Metric, Aggregate Balance, Reference Match, Distribution Shift, Schema Conformance | +| [Table monitors](https://docs.datakitchen.io/testgen/monitor-tables/) | 4 monitor types | Freshness, volume, schema, custom metric | +| Table comparison | Match tests | Compare a target table to a source baseline, for example after a database migration | +| [Commercial Pharma](https://docs.datakitchen.io/testgen/generate-tests/test-types/commercial-pharma-tests/) (Enterprise) | 12 test types | NPI, DEA, NDC, ICD-9 and ICD-10, HCPCS J-codes, CMS Place of Service, NCT numbers | -Great Expectations' commercial product, GX Cloud, shut down on June 1, 2026; GX Core continues under Fivetran stewardship. This comparison is DataKitchen's, last reviewed June 2026 (data contracts row November 2026). Full write-ups: [TestGen vs Great Expectations](https://datakitchen.io/comparisons/datakitchen-vs-great-expectations-gx-oss/) and [TestGen vs Soda Core](https://datakitchen.io/comparisons/datakitchen-vs-soda-oss/). +Generated tests learn what your data already looks like, including what's normally wrong with it. So you still write the business rules (a fare is never negative, shipped quantity never exceeds ordered quantity). DataKitchen estimates generation covers about 80 percent of the tests a team needs. -## Supported databases +## Supported databases and files -As of TestGen 5.134.0, TestGen connects to 14 databases: +As of November 2026, TestGen connects to 14 databases: -- Snowflake -- Databricks SQL -- DuckDB -- Azure Synapse Analytics -- Azure SQL Database -- Microsoft SQL Server -- Microsoft OneLake -- Google BigQuery -- Amazon Redshift -- Amazon Aurora PostgreSQL -- Oracle Database 12c and later -- SAP HANA -- PostgreSQL -- Salesforce Data 360 +| Cloud warehouses and lakehouses | Microsoft | Other databases | +|---|---|---| +| Snowflake | Microsoft SQL Server | PostgreSQL | +| Databricks SQL | Azure SQL Database | Amazon Aurora PostgreSQL | +| Google BigQuery | Azure Synapse Analytics | Oracle Database 12c and later | +| Amazon Redshift | Microsoft OneLake | SAP HANA | +| Salesforce Data 360 | | DuckDB | -TestGen also reads CSV, Parquet, and JSON files on a local path, in Amazon S3, or in Azure Blob Storage, with no database in front. Every source works in both the open-source and Enterprise editions. +TestGen also reads CSV, Parquet, and JSON files on a local path, in Amazon S3, or in Azure Blob Storage, with no database in front. It does not read Google Cloud Storage or Excel workbooks. Every source works in both the open-source and Enterprise editions. -To set up a connection, see [Connect your data](https://docs.datakitchen.io/testgen/connect-your-data/). +To set up a connection, see [Connect your data](https://docs.datakitchen.io/testgen/connect-your-data/) or [which databases TestGen supports](https://datakitchen.io/answers/which-databases-does-testgen-support/). ## Quick start @@ -103,19 +97,43 @@ For complete instructions, see the documentation: * [Install on Mac/Linux](https://docs.datakitchen.io/testgen/get-started/install-on-mac-linux/) * [Install on Windows](https://docs.datakitchen.io/testgen/get-started/install-on-windows/) -Then walk through the [Data Observability Overview Demo](https://docs.datakitchen.io/tutorials/quickstart-demo/), and [connect your own database](https://docs.datakitchen.io/testgen/connect-your-data/). +Then walk through the [Data Observability Overview Demo](https://docs.datakitchen.io/tutorials/quickstart-demo/), and [connect your own database](https://docs.datakitchen.io/testgen/connect-your-data/). Setup guides for specific stacks: [SQL Server](https://datakitchen.io/install/sql-server/), [Microsoft Fabric](https://datakitchen.io/install/microsoft-fabric/), [data profiling](https://datakitchen.io/install/data-profiling/), [data contracts](https://datakitchen.io/install/data-contracts/), and [all of TestGen](https://datakitchen.io/install/testgen/). ## Use it from an AI assistant (MCP) -TestGen ships a Model Context Protocol (MCP) server in the open-source edition. Connect Claude, Claude Code, Cursor, GitHub Copilot, or any MCP client, and ask about your data in plain English. The assistant can profile tables, generate and run tests, and triage failures. Every tool runs under your own TestGen role, so the assistant can do only what you can do. +TestGen ships a Model Context Protocol (MCP) server in the open-source edition, with more than 100 tools in eight groups. Connect Claude, Claude Code, Cursor, GitHub Copilot, or any MCP client, and ask about your data in plain English. The assistant can profile tables, generate and run tests, work on data contracts, and triage failures. Every tool runs under your own TestGen role, so the assistant can do only what you can do. The installer serves the API and MCP server on port 8530 by default. Change it with `--api-port`. -Setup instructions: [docs.datakitchen.io/testgen/mcp](https://docs.datakitchen.io/testgen/mcp/) +Setup instructions: [docs.datakitchen.io/testgen/mcp](https://docs.datakitchen.io/testgen/mcp/). The full tool list: [Supported Tools](https://docs.datakitchen.io/testgen/mcp/supported-tools/). + +## How TestGen compares + +The main difference between data quality tools is who writes the tests. With dbt tests, Great Expectations, and Soda Core, you write each check. TestGen profiles the data and generates the baseline. + +dbt ships four built-in generic tests (`unique`, `not_null`, `accepted_values`, `relationships`), and you write everything past those in YAML or SQL, model by model. Keep them as the gate inside `dbt build`. TestGen connects to the same database and covers the columns nobody had time to write tests for. See [when dbt tests are enough](https://datakitchen.io/answers/when-are-dbt-tests-enough/). + +Great Expectations' GX Core is an Apache 2.0 Python library, and you define each expectation in code. GX Cloud, the hosted product with the UI, shut down on June 1, 2026; GX Core continues under Fivetran stewardship. + +With Soda Core, you write each check in SodaCL (YAML). Soda Core has been source-available under the Elastic License 2.0 since January 2026, so it is no longer open source in the OSI sense. + +| | DataOps TestGen | Great Expectations (GX Core) | Soda Core | +|---|---|---|---| +| License | Apache 2.0 | Apache 2.0 | Elastic License 2.0 (since January 2026) | +| Who writes the tests | TestGen generates them from a profile of every column; you add SQL rules | You write each expectation in Python | You write each check in SodaCL (YAML) | +| Data profiling | Yes | Yes | Partial | +| Web UI in the free edition | Yes | No | No (the UI is Soda Cloud) | +| Freshness, volume, and schema monitoring | Yes | Partial | Partial | +| Data contracts | Generated from the profile; reads and writes ODCS | Partial | Yes, in SodaCL; no ODCS round trip | +| MCP server for AI assistants | Yes | No | No | + +This comparison is DataKitchen's, last reviewed June 2026 (license and data contracts rows November 2026). Full write-ups: [TestGen vs dbt tests and Great Expectations](https://datakitchen.io/answers/how-is-testgen-different-from-dbt-tests-and-great-expectations/), [TestGen vs Great Expectations](https://datakitchen.io/comparisons/datakitchen-vs-great-expectations-gx-oss/), [TestGen vs Soda Core](https://datakitchen.io/comparisons/datakitchen-vs-soda-oss/), and [the best free and open-source data quality and observability tools in 2026](https://datakitchen.io/answers/best-free-open-source-data-quality-observability-tools-2026/). ## Open source vs Enterprise -The core profiling, testing, and monitoring engine is free and open source, with unlimited tables and unlimited data volume. Enterprise adds team access, security, Commercial Pharma tests, source-data controls for AI, and support. +The core profiling, testing, and monitoring engine is free and open source. Enterprise adds team access, security, Commercial Pharma tests, source-data controls for AI, and support. + +Open-source TestGen is free for one user, one database connection, and one project, with unlimited tables and data volume. Enterprise costs $100 per user per month plus $100 per database connection per month, with no per-table charge. Both editions run the same engine, so tests, profiles, and configuration carry over when you upgrade. | | Open source | Enterprise | |---|---|---| @@ -123,26 +141,57 @@ The core profiling, testing, and monitoring engine is free and open source, with | Users | 1 | Unlimited, $100 per user per month | | Database connections | 1 | Unlimited, $100 per connection per month | | Projects | 1 | Unlimited | -| Enterprise security | | Included | +| Tables and data volume | Unlimited | Unlimited | +| Profiling, hygiene, generated tests, monitors, contracts, UI, REST API, MCP server | Included | Included | +| SSO, role-based access control, PII masking, custom branding | | Included | | Commercial Pharma test types (12) | | Included | | Hide source data from AI clients (MCP) | | Included | | Support | Community Slack | DataKitchen support | -See [datakitchen.io/pricing](https://datakitchen.io/pricing/) for current pricing. +See [datakitchen.io/pricing](https://datakitchen.io/pricing/) for current pricing and [TestGen open source vs Enterprise](https://datakitchen.io/answers/testgen-open-source-vs-enterprise/) for the details. + +## FAQ + +### What is DataOps TestGen? + +DataOps TestGen is an open-source data quality and data testing tool from DataKitchen, licensed Apache 2.0. It profiles every column on 55 characteristics, generates tests from 34 test types, runs 32 hygiene detectors, and monitors freshness, volume, schema, and custom metrics. Tests run as SQL inside your own database. It ships with a web UI, a REST API, and an MCP server. + +### Is DataOps TestGen free? + +Yes. Open-source DataOps TestGen is free under the Apache 2.0 license for one user, one database connection, and one project, with unlimited tables and data volume. TestGen Enterprise costs $100 per user per month plus $100 per database connection per month. Enterprise adds team access, security, the 12 Commercial Pharma test types, source-data controls for AI clients, and DataKitchen support. + +### Does TestGen replace dbt tests? + +No. Keep your dbt tests as the gate inside `dbt build`, where a failed test stops the models downstream of it. DataOps TestGen connects to the same database, profiles the tables dbt builds, and generates tests and monitors that run as SQL there. dbt guards the models you wrote tests for. TestGen covers the columns nobody had time to write tests for. + +### Is TestGen a data observability tool? + +Partly, and on purpose. DataOps TestGen monitors every table for freshness, volume, schema changes, and custom metrics between test runs, and learns what normal looks like for each one. It also tests the values inside the columns, which most observability tools leave alone. For pipeline and job observability across tools, DataKitchen ships a separate open-source product, DataOps Observability. + +### Which databases does TestGen support? + +As of November 2026, DataOps TestGen connects to 14 databases: Snowflake, Databricks SQL, BigQuery, Redshift, Aurora PostgreSQL, PostgreSQL, SQL Server, Azure SQL Database, Azure Synapse, Microsoft OneLake, Oracle 12c and later, SAP HANA, Salesforce Data 360, and DuckDB. It also reads CSV, Parquet, and JSON files locally, in Amazon S3, or in Azure Blob Storage. + +### What does TestGen still need a person for? + +Business rules. Generated tests learn what your data already looks like, including what is normally wrong. In DataKitchen's August 2026 run on NYC taxi data, a generated minimum-fare test set its floor at negative $367, because negative fares were already in the data. The rule that a fare is never negative came from a person. DataKitchen puts that hand-written share at about 20 percent. -## The 2026 landscape +## Where TestGen fits in 2026 -How TestGen fits among the other tools, in DataKitchen's yearly landscape posts: +DataKitchen's yearly surveys of open-source and commercial data quality tools: * [The 2026 Open-Source Data Quality and Data Observability Landscape](https://datakitchen.io/blog/the-2026-open-source-data-quality-and-data-observability-landscape/) * [The 2026 Data Quality and Data Observability Commercial Software Landscape](https://datakitchen.io/blog/the-2026-data-quality-and-data-observability-commercial-software-landscape/) * [The 2026 Open Source Data Profiling Software Landscape](https://datakitchen.io/blog/the-2026-open-source-data-profiling-software-landscape/) * [The 2026 Data Contracts Software Landscape: Open Source and Commercial](https://datakitchen.io/blog/the-2026-data-contracts-software-landscape/) +* [The Best Data Observability Tools in 2026](https://datakitchen.io/blog/the-best-data-observability-tools-in-2026/) ## Documentation * [DataOps TestGen documentation](https://docs.datakitchen.io/testgen/what-is-testgen/) * [DataOps TestGen product page](https://datakitchen.io/products/dataops-testgen/) +* [REST API](https://docs.datakitchen.io/testgen/api/) +* [MCP server](https://docs.datakitchen.io/testgen/mcp/) * [Configuration (environment variables)](docs/configuration.md) * [Local development](docs/local_development.md)