mirror of
https://github.com/jj-vcs/jj.git
synced 2026-07-09 18:34:06 +08:00
Because the datatests don't use the default libtest harness, datatests and normal tests cannot be mixed in the same module or even binary. `test_config_schema` is renamed, both to reflect that it is unlike the other `test_*` modules, but also to make the name available for "normal" tests related to the config schema.
20 lines
508 B
Rust
20 lines
508 B
Rust
mod datatest_config_schema;
|
|
|
|
datatest_stable::harness! {
|
|
{
|
|
test = datatest_config_schema::taplo_check_config_valid,
|
|
root = "src/config",
|
|
pattern = r".*\.toml",
|
|
},
|
|
{
|
|
test = datatest_config_schema::taplo_check_config_valid,
|
|
root = "tests/sample-configs/valid",
|
|
pattern = r".*\.toml",
|
|
},
|
|
{
|
|
test = datatest_config_schema::taplo_check_config_invalid,
|
|
root = "tests/sample-configs/invalid",
|
|
pattern = r".*\.toml",
|
|
}
|
|
}
|