Advanced Usage
This guide covers advanced patterns and configurations for Data Quality as Code, including loading tests from YAML files, customizing workflow configurations, and integrating with production systems.Loading Tests from YAML
You can load test definitions from YAML workflow files, enabling version-controlled test configurations:Basic YAML Loading
Using OpenMetadata Connection from YAML
By default,from_yaml() uses the connection configured via configure(). To use the connection from the YAML file:
YAML File Structure
A complete YAML configuration includes:Advanced TestRunner Configuration
Customizing Workflow Behavior
Accessing Test Definitions
Inspect configured tests before running:Next Steps
Publishing Results & Best Practices
Publish results to OpenMetadata, implement error handling, generate tests dynamically, and apply production best practices.