Skip to content

Tests: Fix test suite for SARIF formatter#754

Merged
lorenzo merged 1 commit intohadolint:masterfrom
m-ildefons:sarif-tests
Jan 1, 2022
Merged

Tests: Fix test suite for SARIF formatter#754
lorenzo merged 1 commit intohadolint:masterfrom
m-ildefons:sarif-tests

Conversation

@m-ildefons
Copy link
Copy Markdown
Member

  • Test the result of the SARIF formatter by re-decoding the result and
    comparing it against a known good JSON value. This removes the tests
    dependence on the order the elemets of JSON object are printed in, which
    is not necessarily deterministic.

  • Extend the test suite for the SARIF formatter to test non-empty
    linting results.

possibly fixes: #753

- Test the result of the SARIF formatter by re-decoding the result and
comparing it against a known good JSON value. This removes the tests
dependence on the order the elemets of JSON object are printed in, which
is not necessarily deterministic.

- Extend the test suite for the SARIF formatter to test non-empty
linting results.
@lorenzo lorenzo merged commit 07f8e1a into hadolint:master Jan 1, 2022
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.

Tests start failing with unordered-containers 0.2.16.0

2 participants