jj/cli/tests/datatest_runner.rs
Emily 311299bab5 tests: use jsonschema directly instead of taplo(1)
This removes an external tool dependency, skips the complexities
of subprocessing, and avoids having to poke a hole in the macOS
Nix sandbox because of `reqwest` trying to read the system’s TLS
configuration.

Note that despite the `Cargo.lock` getting bigger, this is actually a
net reduction of dependencies, as Taplo is written in Rust and pulls
in not only `jsonschema` but much more besides.
2025-08-08 16:19:30 +00:00

19 lines
505 B
Rust

mod datatest_config_schema;
datatest_stable::harness! {
{
test = datatest_config_schema::check_config_file_valid,
root = "src/config",
pattern = r".*\.toml",
},
{
test = datatest_config_schema::check_config_file_valid,
root = "tests/sample-configs/valid",
pattern = r".*\.toml",
},
{
test = datatest_config_schema::check_config_file_invalid,
root = "tests/sample-configs/invalid",
pattern = r".*\.toml",
}
}