Conversation
- one case per file, for easier parametrization and unique IDs - new pytest script - update schemas for self-consistency - some failures still to work through
Automated Review URLs |
|
3cts from me:
Edit: PS: dingus is a much better example placeholder than that foo/bar scheme. |
|
Easy enough to find&replace spec versions. I can point the scripts at another PR easy. re. the level of |
|
P.S. the dingus name is inspired by markdown https://daringfireball.net/projects/markdown/dingus ; most implementations offer a dingus to use for conformance checking. |
|
Superceded by jo-mueller#3 |
Example usage:
This will iterate over all attributes tests (concurrently) and, with the test path $TEST_PATH, calls
path/to/my/dingus --dingus-arg $TEST_PATH.The dingus is expected to read the test from the given path and return
{"valid": true}if it believes the test data is valid (falseif not; optionally"message": strwith more details). Prints out a TSV of all test names and their statuspass/fail/error.In "attributes" mode, $TEST_PATH is a path to a JSON file containing the Zarr attributes object (i.e.
{"ome": {...}}). In "zarr" mode, $TEST_PATH is a path to directory representing the root of a zarr container (i.e. containing azarr.json).Test cases are not guaranteed to be correct for the moment.
I recommend ignoring most of the diff (mainly just moving around JSON files); look at
ome_zarr_conformance.pyand the changes in theschemas/directory.