Repository navigation
fix: report "No checks were executed" instead of failing when nothing was tested - #1675
Merged
Merged
Conversation
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.
# Conflicts: # CHANGELOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
datacontract testanddatacontract cinow 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