Back to Great Expectations

Expectation Diagnostics and Testing

docs/expectation_gallery/0-expectation-diagnostics-and-testing.md

1.17.11.6 KB
Original Source

Expectation Diagnostics and Testing

The run_diagnostics method on Expectation calls several other helper methods (_get_augmented_library_metadata, _get_examples, _get_description_diagnostics, _get_expectation_configuration_from_examples, _get_metric_diagnostics_list, _get_execution_engine_diagnostics, _get_test_results, _get_renderer_diagnostics, _get_maturity_checklist, _get_coverage_score, and _get_final_maturity_level) to piece together an ExpectationDiagnostics object. If you need to modify any of those, there is a good chance you will need to modify some of the dataclass objects in expectation_test_data_cases.py or supporting_types.py

The self_check/util.py file defines some really useful functions that are worth checking out: get_test_validator_with_data, build_test_backends_list, generate_expectation_tests, should_we_generate_this_test, evaluate_json_test_v3_api, and check_json_test_result.