mozilla / jsonschema-transpiler

Compile JSON Schema into Avro and BigQuery schemas
Mozilla Public License 2.0
43 stars 9 forks source link

Refactor `scripts/format-tests.py` into `build.rs` #53

Closed acmiyaguchi closed 5 years ago

acmiyaguchi commented 5 years ago

The format-tests script is responsible for formatting and sorting the test cases under tests/resources. The build script is always run on tests, while the format script can be ignored.

The logic is straightforward. In a closely related task, it may be useful to add sorting capabilities to the tests. The ordering matters in the presentation of the unit tests.