Skip to main content

datacontract ci

Run tests for CI/CD pipelines. Wraps test with CI-specific features: GitHub Actions annotations and step summary, Azure DevOps annotations, machine-readable output, and exit-code control. See Testing → Scheduling and CI/CD for full pipeline examples.

datacontract ci [LOCATIONS]...
ArgumentDescription
LOCATIONS...One or more locations (URL or path) of contract files. Supports globs, e.g. contracts/*.yaml.
OptionDefaultDescription
--serverallWhich server to test, or all.
--publishURL to publish the results to.
--outputFile path to write results to.
--output-formatjson or junit.
--jsonPrint test results as JSON to stdout.
--fail-onerrorMinimum severity that causes a non-zero exit: warning, error, or never.
--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 ci datacontract.yaml --output test-results.xml --output-format junit