Closed eirnym closed 7 months ago
The same error can be observed in jsonschema-test-suite
:
error: custom attribute panicked
--> tests/no-op.rs:3:1
|
3 | #[json_schema_test_suite("path/to/JSON-Schema-Test-Suite/repository", "draft7")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: message: Tests directory not found: path/to/JSON-Schema-Test-Suite/repository/tests/draft7
warning: unused import: `TestCase`
--> tests/no-op.rs:1:54
|
1 | use json_schema_test_suite::{json_schema_test_suite, TestCase};
| ^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
error: custom attribute panicked
--> tests/introduce-failure.rs:3:1
|
3 | #[json_schema_test_suite("path/to/JSON-Schema-Test-Suite/repository", "draft7", {"ref_0_0", r"optional_format_regex_0_\d+"})]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: message: Tests directory not found: path/to/JSON-Schema-Test-Suite/repository/tests/draft7
warning: unused import: `TestCase`
--> tests/introduce-failure.rs:1:54
|
1 | use json_schema_test_suite::{json_schema_test_suite, TestCase};
| ^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
I clarified the error message for it and also, the README now contains a minimal HOWTO on running tests
After fixing https://github.com/Stranger6667/jsonschema-rs/issues/444 in similar way as proposed, cargo test in
jsonschema
lib reveals following problem as below.I use Rust 1.75.0.