Skip to content

Inconsistent behavior when no checks are selected#1504

Description

@jschoedl
datacontract test --tag nonexistent-tag datacontract.yaml   # also: --dimension timeliness, --checks slaProperties

Actual: empty results table, 馃敶 data contract is invalid, found the following errors: with no errors listed, exit 1. A contract without a schema block instead reports a warning check ("Schema block is missing. Skip executing tests.") and exits 0. With --metadata-only (#1470) every check is present but skipped, which again gives the empty red banner and exit 1.

Expected: one defined behavior for "nothing was tested", consistent across all of these.

Relevant file: datacontract/output/test_results_writer.py (write_test_result)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions