Walk query files recursively in tree-sitter test.

We were only walking one level of depth into the `queries/` folder
during invocations of `test`, which made us attempt to open folders
rather than recurse into them.

We have to pull in the `walkdir` crate, which is required for
cross-platform walking of directories.

Fixes #938.
This commit is contained in:
Patrick Thomson 2021-02-25 10:24:54 -05:00
parent 225e15cb9f
commit 44010d69ea
4 changed files with 56 additions and 13 deletions

View file

@ -20,12 +20,13 @@ harness = false
[dependencies]
ansi_term = "0.11"
cc = "^1.0.58"
atty = "0.2"
cc = "^1.0.58"
clap = "2.32"
difference = "2.0"
dirs = "2.0.2"
glob = "0.3.0"
html-escape = "0.2.6"
lazy_static = "1.2.0"
libloading = "0.5"
once_cell = "0.1.8"
@ -35,8 +36,8 @@ serde = "1.0"
serde_derive = "1.0"
smallbitvec = "2.3.0"
tiny_http = "0.6"
walkdir = "2.3"
webbrowser = "0.5.1"
html-escape = "0.2.6"
[dependencies.tree-sitter]
version = ">= 0.17.0"