Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

The JSON Schema Test Suite is using its own data structures for test purposes.
I imagine that additional test formats can be helpful.
How do you think about to split a “test case” of this software into smaller JSON files which would be stored together in directories? 🤔

I would appreciate if provided JSON schemas (and corresponding test data) can be directly passed to analysis tools for further checks.

You must be logged in to vote

Tests are already split into multiple files. I'm afraid I don't follow beyond that what you're asking for.

Replies: 1 comment · 6 replies

Comment options

Tests are already split into multiple files. I'm afraid I don't follow beyond that what you're asking for.

You must be logged in to vote
6 replies
@Julian
Comment options

Are you asking whether every test should be in its own file? That doesn't seem like a reasonable layout. Grouping tests together into small collections is useful for organizing.

@Markus-Elfring
Comment options

Are you asking whether every test should be in its own file?

💭 I suggest to make test case objects (like the following) usable as separate files.

  • schema
  • test data
  • test result expectation

That doesn't seem like a reasonable layout.

I dare to present additional software development ideas.

Grouping tests together into small collections is useful for organizing.

Such information is generally fine.

💭 I propose to increase the data access granularity for involved items.

@Julian
Comment options

This isn't a change the suite is going to make. We may at some point tweak the layout a bit, but if you really want such a thing it's somewhat trivial to flatten the suite into individual files with some simple programming, it's just a JSON array.

@Markus-Elfring
Comment options

💭 Can any data processing approaches benefit from the possibility to make schemas and test data better separately accessible?

@Julian
Comment options

Possibly! Feel free to make such a thing into a tool. The suite can already perform the opposite operation, turning itself into a single file containing all cases, by running bin/jsonschema_suite flatten.

Answer selected by Julian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.