Test actions ============ Every test action sets ``type: test`` and a ``test_type``. Choose a check for its example, options, defaults and shared action fields. Tests are validated and generated only with ``--include-tests``. For a worked example, see :doc:`/guides/test/data-tests`. .. toctree:: :maxdepth: 1 Row counts (row_count) Unique keys (uniqueness) Referential integrity (referential_integrity) Required values (completeness) Value range (range) Schema comparison (schema_match) Lookup matches (all_lookups_found) SQL checks (custom_sql) Custom expectations (custom_expectations) .. include:: /_includes/test-common.rst row_count --------- :doc:`Row counts (row_count): syntax and options `. uniqueness ---------- :doc:`Unique keys (uniqueness): syntax and options `. referential_integrity --------------------- :doc:`Referential integrity (referential_integrity): syntax and options `. completeness ------------ :doc:`Required values (completeness): syntax and options `. range ----- :doc:`Value range (range): syntax and options `. schema_match ------------ :doc:`Schema comparison (schema_match): syntax and options `. all_lookups_found ----------------- :doc:`Lookup matches (all_lookups_found): syntax and options `. custom_sql ---------- :doc:`SQL checks (custom_sql): syntax and options `. custom_expectations ------------------- :doc:`Custom expectations (custom_expectations): syntax and options `. .. include:: /_includes/test-output.rst