cli: Check queries when running tree-sitter test
This commit is contained in:
parent
b73b31356d
commit
e14e285a10
6 changed files with 69 additions and 20 deletions
|
|
@ -162,9 +162,15 @@ fn run() -> error::Result<()> {
|
|||
let debug = matches.is_present("debug");
|
||||
let debug_graph = matches.is_present("debug-graph");
|
||||
let filter = matches.value_of("filter");
|
||||
let corpus_path = current_dir.join("corpus");
|
||||
if let Some(language) = loader.languages_at_path(¤t_dir)?.first() {
|
||||
test::run_tests_at_path(*language, &corpus_path, debug, debug_graph, filter)?;
|
||||
test::run_tests_at_path(
|
||||
*language,
|
||||
¤t_dir.join("corpus"),
|
||||
debug,
|
||||
debug_graph,
|
||||
filter,
|
||||
)?;
|
||||
test::check_queries_at_path(*language, ¤t_dir.join("queries"))?;
|
||||
} else {
|
||||
eprintln!("No language found");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue