Skip to main content

datacontract test

Run schema and quality tests on the servers configured in the contract. See the Testing guide for connection details and supported data sources.

datacontract test [LOCATION]
ArgumentDefaultDescription
LOCATIONdatacontract.yamlLocation (URL or path) of the data contract YAML.
OptionDefaultDescription
--serverallWhich server to test (the key in the servers block), or all.
--schema-nameallWhich schema to test, or all.
--checksallComma-separated categories: schema, quality, servicelevel, custom.
--publishURL to publish the results to after the test.
--outputFile path to write results to.
--output-formatjson or junit.
--include-failed-samples / --no-...offCollect a small sample of failed rows.
--logs / --no-logs--no-logsPrint logs.
--ssl-verification / --no-...onSSL verification when publishing.
--inline-references / --no-...onResolve and inline external references.
--debug / --no-debugoffEnable debug logging.
datacontract test datacontract.yaml --server production