Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve JSON schema tests #467

Merged
merged 5 commits into from
Dec 21, 2023
Merged

Improve JSON schema tests #467

merged 5 commits into from
Dec 21, 2023

Conversation

DannyBen
Copy link
Owner

@DannyBen DannyBen commented Dec 19, 2023

Blocked by #466

This PR adds the necessary infrastructure for easily ensuring that invalid JSON schemas fail as expected.
For the time being, there is one single YAML file for each of the schemas (settings, strings, bashly).

As expected, the bashly schema fails. When it passes, we should probably add at least a handful more test files.


  • Add a spec/fixtures/schema_invalid folder, with subfolder-name-as-schema convention, and with test YAMLs in each.
  • Add run schema invalid test command that tests all invalid fixtures in spec/fixtures/schemas_invalid
  • Update run schema all to include the invalid tests.
  • Add a sufficient number of files for each schema
  • Tests should pass

@DannyBen DannyBen self-assigned this Dec 19, 2023
@DannyBen
Copy link
Owner Author

Tests pass thanks to #468

@DannyBen DannyBen merged commit 748b153 into master Dec 21, 2023
6 checks passed
@DannyBen DannyBen deleted the add/invalid-schema-tests branch December 21, 2023 05:41
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.

None yet

1 participant