Skip to content

fix: report "No checks were executed" instead of failing when nothing was tested - #1675

Merged
jschoedl merged 3 commits into
mainfrom
fix/1504-nothing-tested
Sep 29, 2026
Merged

jschoedl merged 3 commits into
mainfrom
fix/1504-nothing-tested

Conversation

@jschoedl

Copy link
Copy Markdown
Collaborator

datacontract test and datacontract ci now report "⚪ No checks were executed." and exit 0 without publishing when a run tests nothing (a selection that matches nothing, a contract without a schema, or only skipped checks); the reason is in the run log. The result lines now also start with a capital letter.

Fixes #1504

When a test run executes no checks — because a contract lacks a schema, a selection
matches nothing, or all checks were skipped — the run exits 0 with the message
'⚪ No checks were executed.' and does not publish results.

The engine logs the reason (schema missing, no checks found for tags, etc.) under
--logs; without --logs, both test and ci print the same line.

- Capitalized all result line starts for consistency: 'Data contract is valid',
  'Data contract has warnings', 'Data contract is invalid', 'No checks were executed'
- 'ci' step summary labels now capitalize: 'Passed', 'Warning', 'Failed', etc.
- Added period to 'Published data contract successfully.'
- Updated docs examples and test assertions to match.
@jschoedl
jschoedl merged commit c21008a into main Sep 29, 2026
19 checks passed
@jschoedl
jschoedl deleted the fix/1504-nothing-tested branch September 29, 2026 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inconsistent behavior when no checks are selected

1 participant